Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

checking headers in http_request from reverse web proxy to application server

11 views
Skip to first unread message

ian diddams

unread,
Feb 19, 2016, 5:33:23 AM2/19/16
to
A colleague has asked me to check this out, and I don't know where to start.

:-(


We have an Apache/2.2.15 webserver running on a CentOS release 6.5 server.

A virtual host exists


<VirtualHost *:10080>
ServerName test
DocumentRoot /var/www
ProxyPreserveHost On
ProxyRequests Off
SetEnvIf X-FORWARDED-FOR "(.*)$" FORWARDED=$0
RequestHeader set X-Real-IP "%{FORWARDED}e"
SetEnv scheme=http
SetEnvIf HTTPS on scheme=https
RequestHeader set X-Scheme "%{scheme}e"
ErrorLog /opt/cyclone/var/logs/laptopmatchmaker_error.log
CustomLog /opt/cyclone/var/logs/laptopmatchmaker_acess.log combined
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ProxyPass /api http://localhost:18080
ProxyPassReverse /api http://localhost:18080

</VirtualHost>


My colleague has asked me

"how can we check headers in http_request from reverse web proxy to application server "


Can anybody point me in the right direction please? (OR better still just tell me and put me out of my misery ;-)

cheers

ian

0 new messages