logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: checking headers in http_request from reverse web proxy to a
Author
didds2



Joined: 19 Feb 2016
Posts: 1
Location: uk

PostPosted: Fri 19 Feb '16 14:53    Post subject: checking headers in http_request from reverse web proxy to a Reply with quote

A colleague has asked me to check this out, and I don't know where to start.

Sad


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 Wink

cheers

ian
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 26 Feb '16 11:23    Post subject: Reply with quote

On the centos server you can use wireshark. Or you can define a new LogFormat for CustomLog instead of combined.
Back to top


Reply to topic   Topic: checking headers in http_request from reverse web proxy to a View previous topic :: View next topic
Post new topic   Forum Index -> Apache