maio 13th, 2015
configurando proxy reverso apache – passando header
Posted by
Felipe Olivaes in
Apache
<VirtualHost *:80> ServerName servidor.dominio.com.br ServerAlias servidor.dominio.net ServerAdmin servidor@servidor.dominio.com.br # configurando header IP RewriteEngine on RewriteCond %{REMOTE_ADDR} ^(.*) RewriteRule ^.* - [env=MY_REMOTE_ADDR:%1] RequestHeader set X-Kinghost-Ip "%{MY_REMOTE_ADDR}e" # configurando proxy reverso ProxyPreserveHost On ProxyPass / http://10.99.99.100:80/ ProxyPassReverse / http://10.99.99.100:80/ # libera utilização de proxy <Proxy *> Order deny,allow allow from all </Proxy> </VirtualHost>