It’s critical to enable X-Forwarded-For Logging when behind a proxy or load balancer in order grab the true IP address of visitors. To enable this in your IIS site follow the steps below: Step 1. Select your website in the IIS management console. In this example, I have a test site called www.larmeir.com. Ensure that […]
Category: Web Servers
Apache Reverse Proxy Vhost Examples
For certain projects I’ll use Nginx or Apache as a reverse proxy to back end web servers. While Nginx is far more light weight and faster, Apache is the swiss army knife of web servers and has just about every feature you could need. Here’s a couple of examples of Apache Reverse proxy vhosts. SSL […]
Enabling X-Forwarded-For Logging In Apache 2.4
It’s critical to enable X-Forwarded-For Logging when behind a proxy or load balancer in order grab the true IP address of visitors. To enable this in your Apache vhost configuration, simply add the following logging options: 1 2 3 4 5 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%{X-Forwarded-For}i %l […]