httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hracek <phrac...@gmail.com>
Subject [users@httpd] VirtualHost configuration and REMOTE_ADDR variable
Date Mon, 08 Aug 2011 11:36:54 GMT
Dear users

I have following virtual host configuration (apache 2.2.19) in file
/etc/apache2/vhosts.d/vhost-my.conf:
<VirtualHost *:443>
        SSLEngine on
        SSLProxyEngine on
        ServerName portal
        ProxyRequests off
        #ProxyPreserveHost on
        TraceEnable off
        <Location "/" >
            ProxyPass https://127.0.0.1/
            ProxyPassReverse https://127.0.0.1/
        </Location>

</VirtualHost>

<VirtualHost 127.0.0.1:443>
ServerName my_web
SSLEngine on
SSLProxyEngine on
#ProxyPreserveHost on
ProxyRequests Off
TraceEnable Off

DocumentRoot "/srv/www/htdocs/application/cgi-bin/index.cgi"

</VirtualHost>

IP address of the apache real web server is 192.168.0.10 and on the
https my_web page (in section 127.0.0.1:443)
is index.cgi file is mentioned variable REMOTE_ADDR.
But when I go to the index.cgi page then REMOTE_ADDR is fill up with
127.0.0.1 instead of 192.168.0.10.
Where I have made mistake in apache2 configuration?

Value is gather in CGI (Perl) script by $ENV{'REMOTE_ADDR'}.

Thank you in advance
-- 
Best Regards / S pozdravem
Petr Hracek

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message