RE: [users@httpd] apache 2.0 as reverse proxy using mod_rewrite

2005-06-24 Thread Heitmann, Herwarth
Hello, The configuration of virtual host https://login is the same: Listen ip-address:443 ServerAdmin [EMAIL PROTECTED] ServerName webserver ProxyPass / http://login-internal/ ProxyPassReverse / http://login-internal/ SSLEngine on SSLCertificateFile /etc/httpd/conf/ssl.

[users@httpd] Process environment

2005-06-24 Thread Felix Brack
Hello everybody, I use httpd 2.0.51 together with PHP5 module. Httpd is started as root. The child processes are then started less privileged (User, Group). When I run a PHP script that executes a program on the server, this program would like to access data in the users home directory. To get th

Re: [users@httpd] syntax error before '*' token

2005-06-24 Thread Gustavo A. Baratto
I'm using the standard gcc that comes with freebsd: # gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.2 [FreeBSD] 20040728 Thanks - Original Message - From: "Boyle Owen" <[EMAIL PROTECTED]> To: Sent: Thursday, June 23,

RE: [users@httpd] apache 2.0 as reverse proxy using mod_rewrite

2005-06-24 Thread Axel-Stéphane SMORGRAV
OK Here is the deal: Your rewriterule is unnecessary. That's probably what caused the 302. What your rewriterule does is to send a redirect to https://webserver/ in response to a request for the root path https://webserver/ (or a redirect to https://login/ in response to a request for the root

Re: [users@httpd] syntax error before '*' token

2005-06-24 Thread Dick Davies
* Gustavo A. Baratto <[EMAIL PROTECTED]> [0632 01:32]: > Does anybody know what is this error all about? > > I got the same error in all combinations of these: > - freebsd 5.3 and 5.4. > - apache 2.0.53 and 2.0.54 > - freebsd make and gmake Why don't you just use the ports tree? http://www.free

RE: [users@httpd] apache 2.0 as reverse proxy using mod_rewrite

2005-06-24 Thread Heitmann, Herwarth
Ok I made a mistake in the initial question When someone goes to https://webserver it has to be redirected to http://webserver-internal/dealer/start You were right on https://login it has no subdirectory redirect and this works without the rewrite... I got the following 302 found error from th

RE: [users@httpd] apache 2.0 as reverse proxy using mod_rewrite

2005-06-24 Thread Axel-Stéphane SMORGRAV
HTTP 302 is not an error: it is a redirection. The thing which is wrong with that is the Location header which makes a reference to a server which is not known to the clients: webserver-internal. In other words, the backend server tells the browser to make a request for http://webserver-interna

[users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi, I would like to use mod_rewrite to overwrite the environment variable REMOTE_ADDR with the value of HTTP_X_FORWARDED_FOR because I am using Apache 2 in a reverse / forward proxy scenario where the original IP address of the client is not passed on to the internal Apache server: Inet -> Ser

[users@httpd] Samba share related 404's

2005-06-24 Thread Marty Landman
Hi, I've been getting errors like these for a long time and was hoping someone could suggest the cause, and possibly the cure: [Fri Jun 24 08:23:02 2005] [error] [client 192.168.0.1] File does not exist: /usr/local/apache/htdocs/look [Fri Jun 24 08:23:03 2005] [error] [client 192.168.0.1] Fil

RE: [users@httpd] Samba share related 404's

2005-06-24 Thread Boyle Owen
> -Original Message- > From: Marty Landman [mailto:[EMAIL PROTECTED] > Sent: Freitag, 24. Juni 2005 14:48 > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] Samba share related 404's > > > Hi, > > I've been getting errors like these for a long time and was > hoping someone > cou

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Joshua Slive
On 6/24/05, Werner Schalk <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to use mod_rewrite to overwrite the environment variable > REMOTE_ADDR with the value of HTTP_X_FORWARDED_FOR because I am using Apache > 2 in a reverse / forward proxy scenario where the original IP address of the > clien

RE: [users@httpd] apache 2.0 as reverse proxy using mod_rewrite

2005-06-24 Thread Heitmann, Herwarth
Thanks The ProxyPassReverse was the issue... It works Greetings, Herwarth -Original Message- From: Axel-Stéphane SMORGRAV [mailto:[EMAIL PROTECTED] Sent: Friday, June 24, 2005 13:31 To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] apache 2.0 as reverse proxy using mod_

[users@httpd] Reverse Proxy Query

2005-06-24 Thread sk . senthilkumar
Hi, I would like to know whether Apache when used as  Reverse Proxy server has scripting option so that it would redirect requests to a web server (which is down due to some reason) to another backup web server. If so, can you please tell me the version of Apache where this is supported and a

Re: [users@httpd] Reverse Proxy Query

2005-06-24 Thread Miguel
I don't know if Apache has such a module, but I think it can be done by running a script at cron that tests someway your server is up. If it is not, the script might change the configuration file regarding that server and reload Apache. That's a workaround, not an homologated functionality, but

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi, well apologies for bringing this issue up again but none of the suggested solutions actually does work. I tried the following output filter: ExtFilterDefine proxy_hack mode=output intype=text/html outtype=text/html cmd="/bin/sed 's/HTTP_X_FORWARDED_FOR/REMOTE_ADDR/g'" Enabling this output

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Joshua Slive
On 6/24/05, Werner Schalk <[EMAIL PROTECTED]> wrote: > Hi, > > well apologies for bringing this issue up again but none of the suggested > solutions actually does work. I'm not sure how many ways I can say this: There is no way to do what you want with the included apache modules, and I don't kno

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi Joshua, thanks for your help. In your last email you agreed upon the suggestions David Adams had (e.g. using sed a an output filter). I have tried this and it does not work. Thanks anyway. All the best & bye, Werner. - The

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Joshua Slive
On 6/24/05, Werner Schalk <[EMAIL PROTECTED]> wrote: > Hi Joshua, > > thanks for your help. In your last email you agreed upon the suggestions David > Adams had (e.g. using sed a an output filter). I have tried this and it does > not work. Now I understand your confusion. His suggestion was to p

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Scott Gifford
Werner Schalk <[EMAIL PROTECTED]> writes: > Hi, > > well apologies for bringing this issue up again but none of the suggested > solutions actually does work. I tried the following output filter: Why do you need to solve it exactly this way? Can't you instruct your code or your Apache to simply

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Werner Schalk
Hi, well of course I could use HTTP_X_FORWARDED_FOR instead of REMOTE_ADDR in all my scripts but the problem is that I have some customers and their scripts are relying on REMOTE_ADDR so I don't want to ask them to change their scripts... Thanks. Bye, Werner -

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR (follow-up)

2005-06-24 Thread Werner Schalk
Hi, just a quick follow-up: Thanks to Thomas Eibner, it got it working: > I believe this module does it already: > http://stderr.net/apache/rpaf/ Yeah! All the best and thanks again, Werner. - The official User-To-User suppor

Re: [users@httpd] mod_rewrite: Overwriting REMOTE_ADDR with HTTP_X_FORWARDED_FOR

2005-06-24 Thread Scott Gifford
Werner Schalk <[EMAIL PROTECTED]> writes: > Hi, > > well of course I could use HTTP_X_FORWARDED_FOR instead of REMOTE_ADDR in all > my scripts but the problem is that I have some customers and their scripts > are relying on REMOTE_ADDR so I don't want to ask them to change their > scripts... A

[users@httpd] OpenSSL? ModSSL? How?

2005-06-24 Thread Henry Ortega
Pardon my newbie question. I have Mandrake installation with the default Apache 1.3.27 server installed. I want to be able to have some websites that should support SSL. How do I do about doing that? What are the advantages or differences between OpenSSL and ModSSL? Or am I taking about Apples an

Re: [users@httpd] syntax error before '*' token

2005-06-24 Thread Gustavo A. Baratto
Thanks for the hint, but although I do use ports for most things, I found that for apache and php the ports dont give me as much flexibility. And particularly the apache port is much more difficult to use than a simple "./configure --tons --of --args ;make; make install"... I actually tried to

Re: [users@httpd] OpenSSL? ModSSL? How?

2005-06-24 Thread Joshua Slive
On 6/24/05, Henry Ortega <[EMAIL PROTECTED]> wrote: > Pardon my newbie question. > > I have Mandrake installation with the default Apache 1.3.27 > server installed. I want to be able to have some websites that > should support SSL. How do I do about doing that? > What are the advantages or differe

RE: [users@httpd] Samba share related 404's

2005-06-24 Thread PMilanese
Is the client making typos when trying to get to the samba share? I.e. typing "blah.blah.com/share" instead of \\blah.blah.com\share? -Original Message- From: Boyle Owen [mailto:[EMAIL PROTECTED] Sent: Friday, June 24, 2005 8:54 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTEC

[users@httpd] Chroot question.

2005-06-24 Thread Gold, Samuel (Contractor)
Hey all, I have setup apache 1.3.33 on Solaris 9 in a chroot environment and just wanted to ask a simple question. If there is a /proc directory in the jail should the apache processes be in the real root /proc directory or in the jail /proc directory. This is the first time I have ever setup a

[users@httpd] Re: mod_rewrite and mod_auth ordering issue

2005-06-24 Thread Joost de Heer
Stephen Shirley said: > Morning, > I want to use mod_auth for apache2 to restrict access to a directory on > a website. I also want to use mod_rewrite to force such authentication > to be over https. One way to do this: use a RedirectPermanent to the https-site in the http-vhost, and put the

Re: [users@httpd] https redirect

2005-06-24 Thread Joost de Heer
> We now see the need to move the non-secure site to it's own server. So I > need apache to redirect all the non-secure traffic from the old server to > the new server, and all the secure traffic from the new server to the old > server. I have accomplished the non-secure traffic of the old server

Re: [users@httpd] syntax error before '*' token

2005-06-24 Thread Joost de Heer
Gustavo A. Baratto said: > I'm using the standard gcc that comes with freebsd: Are you sure? >>> gmake[4]: Entering directory >>> `/home/admin2/src/httpd-2.0.54/server/mpm/prefork' >>> /home/admin2/src/httpd-2.0.54/srclib/apr/libtool --silent >>> --mode=compile >>> cc -g -O2-D_REENTRANT -D_T

[users@httpd] Re: Dynamic refreshing of Proxy Rules

2005-06-24 Thread Joost de Heer
> It would be nice to have Apache reload proxy rules at regular > (configurable) intervals w/o the need to bounce the webserver. apachectl graceful in the crontab? > Another thing, I desire in mod_proxy is the ability to specify a Failover > backend (remote) host, in case one host does not respon

Re: [users@httpd] syntax error before '*' token

2005-06-24 Thread Gustavo A. Baratto
Not really. They are the same: # md5 /usr/bin/cc MD5 (/usr/bin/cc) = 13df95e5e0f1dbf3fc538e83b01dc1c2 # md5 /usr/bin/gcc MD5 (/usr/bin/gcc) = 13df95e5e0f1dbf3fc538e83b01dc1c2 Even if I add CC=gcc in the environment, I get the same error. - Original Message - From: "Joost de Heer" <[

[users@httpd] 2 Gig Apache File Size Limit...

2005-06-24 Thread Charles Heizer
Hello, I'm running apache 2.0.46 on RHEL AS3 and I have some image files that are over the 2gig file size limit, is there anything I can do to increase this to 4 or more gigs? Thanks, - Charles - The official User-To-User suppo

[users@httpd] mod_rewrite not applied to default files?

2005-06-24 Thread Chris Seaton
Hi, I'm using mod_rewrite to send .html files as application/xhtml+xml for agents that say they accept it, and text/html for all others, using mod_rewrite. At the moment I simply have a .htaccess file with RewriteEngine on RewriteCond %{REQUEST_FILENAME} \.html$ RewriteCond %{HTTP_ACCEPT

RE: [users@httpd] 2 Gig Apache File Size Limit...

2005-06-24 Thread Gary W. Smith
I think this was discussed about 6 months back. If I recall you need to first make sure the filesystem can support files larger than 2gb. I think this was the problem that they had. Gary > -Original Message- > From: Charles Heizer [mailto:[EMAIL PROTECTED] > Sent: Friday, June 24, 2005

[users@httpd] Re: Dynamic refreshing of Proxy Rules

2005-06-24 Thread Jignesh Badani
Thanks Joost, I am not so confident about "apachectl -k graceful". I was actually referring to something within the Apache runtime. The parent process polls the config files or a file with just proxy rules for changes and communicates it to the child processes. But since you have mentioned it,

RE: [users@httpd] 2 Gig Apache File Size Limit...

2005-06-24 Thread Jignesh Badani
I believe it is the current version (2.0x) limitation You may want to check this out: http://httpd.apache.org/docs-2.1/new_features_2_2.html New Features in Apache 2.1/2.2 -- Large File Support httpd is now built with support for files larger than

Re: [users@httpd] Chroot question.

2005-06-24 Thread Scott Gifford
"Gold, Samuel (Contractor)" <[EMAIL PROTECTED]> writes: > Hey all, > > I have setup apache 1.3.33 on Solaris 9 in a chroot environment and just > wanted to ask a simple question. If there is a /proc directory in the jail > should the apache processes be in the real root /proc directory or in the