Hello everyone,
I am using mod_proxy and proxy_add_forward_module to add the original IP
of the client. The configuration is a little bit complexe. I have 2
differents apache running, the 80 one which is as small as possible, the
second one which has the PHP module.
The front one deserve all the files it can handles (everything except
.php3) as the second one handles the PHP. My config file for the front
apache looks like:
<Files ~ "\.php3?$">
Rewri*gine on
RewriteBase /
RewriteCond %{THE_REQUEST} "^[^ ]+ ([^ ]+)"
RewriteRule ^(.*)$ http://localhost:8080%1 [proxy]
</Files>
So all the .php3 files are redirected through the proxy. But the
X_FORWARDED_FOR var isn't completed.
If I use the following line:
ProxyPass / http://localhost:8080/
then it works perfect. So I guess this is a problem in mod_rewrite and
the [proxy] type. Does anyone know how to fix that ?
Thanks.