Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: checking headers in http_request from reverse web proxy to a |
|
Author |
|
didds2
Joined: 19 Feb 2016 Posts: 1 Location: uk
|
Posted: Fri 19 Feb '16 14:53 Post subject: checking headers in http_request from reverse web proxy to a |
|
|
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 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 26 Feb '16 11:23 Post subject: |
|
|
On the centos server you can use wireshark. Or you can define a new LogFormat for CustomLog instead of combined. |
|
Back to top |
|
|
|
|
|
|