Re: [us...@httpd] mod_proxy and mod_rewrite issue

2009-04-15 Thread André Warnier
inas inassen wrote: Hi all, I have a web application running on tomcat with a context myapp I access this webapp via apache using a proxypass and proxy balancer ==> http://myserver.com/myapp Now, I want to use the url http://myserver.com and apache will forward my request to tomcat b

Re: [us...@httpd] Re: Apache (php5/fcgi) can't resolve hostnames

2009-04-15 Thread Krist van Besien
On Thu, Apr 16, 2009 at 12:30 AM, Aaron Turner wrote: > Looks like I figured it out. > > OSX's internal name resolution API calls (gethostbyname?) apparently > doesn't honor /etc/resolv.conf, but the 'host' command does. This is also why "getent hosts" is a better tool to debug DNS issues than th

[us...@httpd] mod_proxy and mod_rewrite issue

2009-04-15 Thread inas inassen
Hi all, I have a web application running on tomcat with a context myapp I access this webapp via apache using a proxypass and proxy balancer ==> http://myserver.com/myapp Now, I want to use the url http://myserver.com and apache will forward my request to tomcat by adding the URI /myapp

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 9:24 PM, ravi kumar wrote: > Hi Brian, > > Thanks for your help. > I tried to resolve this issue on my own, but it didn't worked. > > For redirecting i used the below rule > "RewriteRule ^/(.*) http://mywebsite.com/spaces/ [R]" > > After executing the site i.e "http://myweb

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Igor Cicimov
It doesn't work because is incorrect. It should be: RewriteRule ^/(.*) http://mywebsite.com/spaces/$1 [R,L] Notice the $1 expretion that's the key for the redirection Igor On Thu, Apr 16, 2009 at 11:24 AM, ravi kumar wrote: > Hi Brian, > > Thanks for your help. > I tried to resolve this issue

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread ravi kumar
Hi Brian, Thanks for your help. I tried to resolve this issue on my own, but it didn't worked. For redirecting i used the below rule "RewriteRule ^/(.*) http://mywebsite.com/spaces/ [R]" After executing the site i.e "http://mywebsite.com/"; it throws an exception like "The requested URL /xxx

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 7:51 PM, Brian Mearns wrote: > On Wed, Apr 15, 2009 at 7:41 PM, Igor Cicimov wrote: >> RewriteEngine On >> RewriteRule ^/(.*) /spaces/$1 >> >> Igor > > Actually, since it was specified as needing to redirect, you need the > [R] flag at the end, but that will end up redirec

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 7:41 PM, Igor Cicimov wrote: > RewriteEngine On > RewriteRule ^/(.*) /spaces/$1 > > Igor Actually, since it was specified as needing to redirect, you need the [R] flag at the end, but that will end up redirecting forever. You need to either set up the rewrite to not match

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Igor Cicimov
RewriteEngine On RewriteRule ^/(.*) /spaces/$1 Igor On Thu, Apr 16, 2009 at 7:13 AM, ravi kuamar wrote: > Hello friends, > > I have to write a rewrite rule, the condition is like.. > > We have a website in windows i.e http://mywebsite.com > now if somebody comes and type http://mywebsite.com/xx

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
I managed to get rid of the .htacces error. I had to add a RedirectBase /cgi-bin directive to the .htacces and now it's working. But another problem occured. Now because mod_rewrite is rewriting my url, the nph prefix for my script is ignored, so apache add his own header like this: HTTP/1.1 200

Re: [us...@httpd] Re: Apache (php5/fcgi) can't resolve hostnames

2009-04-15 Thread Aaron Turner
Looks like I figured it out. OSX's internal name resolution API calls (gethostbyname?) apparently doesn't honor /etc/resolv.conf, but the 'host' command does. Also, OSX doesn't like it if you've only configured 127.0.0.1 as your only nameserver, even if you have a perfectly good local named runni

[us...@httpd] Help needed for rewrite rule

2009-04-15 Thread ravi kuamar
Hello friends, I have to write a rewrite rule, the condition is like.. We have a website in windows i.e http://mywebsite.com now if somebody comes and type  http://mywebsite.com/x  this should be redirected to the http://mywebsite.com/spaces/x  where x can be any string. can somebo

Re: [us...@httpd] Config file name of Apache 2.2.9 and its default location on Ubuntu 8.10???

2009-04-15 Thread Jimmyboy
Thank you for the neat reply, Doug. On Thu, Apr 16, 2009 at 2:17 AM, Doug Bell wrote: > On Apr 15, 2009, at 3:13 PM, Jimmyboy wrote: > > > Hi, > > I am following the Quickstart Guide for installing NAGIOS using > http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. > > One of the p

Re: [us...@httpd] Config file name of Apache 2.2.9 and its default location on Ubuntu 8.10???

2009-04-15 Thread Doug Bell
On Apr 15, 2009, at 3:13 PM, Jimmyboy wrote: Hi, I am following the Quickstart Guide for installing NAGIOS using http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html . One of the prerequisites is Apache2, which I installed, and was successful in getting "It Works!!" for http://12

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
Okay, so .. I made a little test. In the same directory with my cgi script I write a .htaccess file containig this: Allow from all Options +FollowSymLinks RewriteEngine on RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1&header=%{HTTP:Range} The problem now is that when I call the script like this:

Re: [us...@httpd] Re: Apache (php5/fcgi) can't resolve hostnames

2009-04-15 Thread Aaron Turner
On Wed, Apr 15, 2009 at 11:30 AM, Paul Puschmann wrote: > Do you have more than one ethernet-interface? > Perhaps your Apache is bound to an interface that has no connections > to the outside? Excellent idea, but I have only one interface and apache is bound to that. Apache is accessible via the

[us...@httpd] Config file name of Apache 2.2.9 and its default location on Ubuntu 8.10???

2009-04-15 Thread Jimmyboy
Hi, I am following the Quickstart Guide for installing NAGIOS using http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. One of the prerequisites is Apache2, which I installed, and was successful in getting "*It Works!!*" for http://127.0.0.1. However, I am unable to understand which o

Re: [us...@httpd] Re: Apache (php5/fcgi) can't resolve hostnames

2009-04-15 Thread Paul Puschmann
On Wed, Apr 15, 2009 at 10:31:52AM -0700, Aaron Turner wrote: > On Tue, Apr 14, 2009 at 11:34 PM, Krist van Besien > wrote: > > On Tue, Apr 14, 2009 at 5:32 PM, Aaron Turner wrote: > >> Nobody has any ideas??? > >> > >> On Sat, Apr 11, 2009 at 3:31 PM, Aaron Turner wrote: > >>> At first I though

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread André Warnier
Eric Covener wrote: On Wed, Apr 15, 2009 at 2:37 PM, André Warnier wrote: If I need to be more clear : URL-to-URL is what mod_rewrite *does*, all the time, in every single example shown in the pages on the Apache website. So what else do you want ? This is a bit of an over-simplification. O

[us...@httpd] Re: [ot][us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread André Warnier
Brian Mearns wrote: [...] Come on now, let's not completely rule out the possibility of there being a woman on this mailing list. =J Alright, I was being sexist there. Let's restate this in a more politically correct way : One thing most of these sapient beings have in common however, is th

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread Eric Covener
On Wed, Apr 15, 2009 at 2:37 PM, André Warnier wrote: > If I need to be more clear : URL-to-URL is what mod_rewrite *does*, all the > time, in every single example shown in the pages on the Apache website.  So > what else do you want ? This is a bit of an over-simplification. Outside of per-dir

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 2:37 PM, André Warnier wrote: [clip] > One thing most of these people have in common however, is that there is some > limit to the time they are prepared to spend answering questions, because > they also have a life, a job, a girlfriend and/or a wife, a family, another > ho

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread ricardo13
Thank you !!! I'm reading Apache documentation and find what I want. Ricardo Brian Mearns-2 wrote: > > On Wed, Apr 15, 2009 at 1:21 PM, ricardo13 > wrote: >> >> Hi, >> >> Thank you >> >> I was reading this link. I will read again. >> >> But, where can I find an example URL-to-URL? >> >> Ple

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread André Warnier
ricardo13 wrote: Hi, Thank you I was reading this link. I will read again. But, where can I find an example URL-to-URL? Ricardo, A very general statement, as very general information : the people who watch this list and try to help other people in using Apache, have different motivations to

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 1:21 PM, ricardo13 wrote: > > Hi, > > Thank you > > I was reading this link. I will read again. > > But, where can I find an example URL-to-URL? > > Please > > Ricardo > > > awarnier wrote: >> >> ricardo13 wrote: >>> hi all, >>> >>> Somebody has a example about "How rewrite

Re: [us...@httpd] Re: Apache (php5/fcgi) can't resolve hostnames

2009-04-15 Thread Aaron Turner
On Tue, Apr 14, 2009 at 11:34 PM, Krist van Besien wrote: > On Tue, Apr 14, 2009 at 5:32 PM, Aaron Turner wrote: >> Nobody has any ideas??? >> >> On Sat, Apr 11, 2009 at 3:31 PM, Aaron Turner wrote: >>> At first I thought this was a problem with my python/fastcgi config, >>> but now I've noticed

[us...@httpd] suexec not activating

2009-04-15 Thread Ann Cantelow
Greetings all. I'm trying to enable suexec with a new apache2 installation. When I compile and install, I don't get an enabled message with httpd -l: Output of httpd -l -- Compiled in modules: core.c mod_authn_file.c mod_authn_default.c mod_authz_host.c mod_authz_gr

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread ricardo13
Hi, Thank you I was reading this link. I will read again. But, where can I find an example URL-to-URL? Please Ricardo awarnier wrote: > > ricardo13 wrote: >> hi all, >> >> Somebody has a example about "How rewrite URL to URL ???" Or tutorial >> about. >> I achieved to run some example ab

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
great, thanks, than I'll stick to mod_rewrite and do some digging in the docs! 2009/4/15 André Warnier : > Ruben Lihet wrote: >> >> OK, but can mod_rewrite read the http-header ? > > That's exactly what Eric suggested. > > mod_rewrite reads the http header, and copies its content to an environment

Re: [us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread André Warnier
ricardo13 wrote: hi all, Somebody has a example about "How rewrite URL to URL ???" Or tutorial about. I achieved to run some example about URL-to-filename How about starting here ? http://httpd.apache.org/docs/2.2/rewrite/ -

[us...@httpd] Example of URL-to-URL in mod_rewrite

2009-04-15 Thread ricardo13
hi all, Somebody has a example about "How rewrite URL to URL ???" Or tutorial about. I achieved to run some example about URL-to-filename Thank you Ricardo -- View this message in context: http://www.nabble.com/Example-of-URL-to-URL-in-mod_rewrite-tp23061118p23061118.html Sent from the Apache

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Tom Evans
On Wed, 2009-04-15 at 17:40 +0300, Ruben Lihet wrote: > OK, but can mod_rewrite read the http-header ? I know mod_rewrite can > read get parameters, but I don't know if it's capable of reading the > http header. > http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond Other th

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread André Warnier
Ruben Lihet wrote: OK, but can mod_rewrite read the http-header ? That's exactly what Eric suggested. mod_rewrite reads the http header, and copies its content to an environment value, which your cgi program can just obtain from its running environment.

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
OK, but can mod_rewrite read the http-header ? I know mod_rewrite can read get parameters, but I don't know if it's capable of reading the http header. 2009/4/15 Eric Covener : > On Wed, Apr 15, 2009 at 4:36 AM, Ruben Lihet wrote: >> Hello, >> >> I am writing a nph cgi script in c++ and I'm runni

Re: [us...@httpd] cgi http complete header

2009-04-15 Thread Eric Covener
On Wed, Apr 15, 2009 at 4:36 AM, Ruben Lihet wrote: > Hello, > > I am writing a nph cgi script in c++ and I'm running it through apache > 2.2 on linux. I want to read a certain part of the request-header that > is not available as an environment variable. That would  be the Range: > ... request. H

[us...@httpd] SSLVerifyClient in apache + openssl

2009-04-15 Thread Mike Pechkin
hi, Is it a bug ? This is scenarion for CentOS 5.3 (apache 2.2.3 + openssl-0.9.8e) 1. Simple httpd.conf (nothing special) + ssl part, selfsigned certs + CA: SSLRandomSeed startup file:/dev/urandom 512 SSLRandomSeed connect file:/dev/urandom 512 SSLSessionCache shmcb:/var/cache/mod_ssl/ssl_scache

[us...@httpd] cgi http complete header

2009-04-15 Thread Ruben Lihet
Hello, I am writing a nph cgi script in c++ and I'm running it through apache 2.2 on linux. I want to read a certain part of the request-header that is not available as an environment variable. That would be the Range: ... request. How can I read that ? To be clear: I'm sending the client that I