Apache + Ubuntu Behind Reverse Proxy | Log X-Forwarded-For Header | Disable Proxy Health Check Logs
Complete Guide: https://www.rmtechcentral.com/apache-ubuntu-behind-a-reverse-proxy-log-x-forwarded-for-header-disable-proxy-health-check-logs
Apache HTTP Server sitting behind a reverse proxy is a very common setup, however, by default, Apache will log the source IP address inside the layer 3 header as opposed to the X-Forwarded-Header. This can be inconvenient when checking server logs, because everything will appear as though it is coming from the same IP address.
Another issue that can make poking through logs a bit more painful, is the logging of the constant health checks initiated from the reverse proxy. The logging of these health checks by Apache can lead to the log filling up rapidly with line after line of redundant text.
This video was created to help you remedy these issues, while also briefly touching on how to define custom log files as well, since this comes with the territory when aiming to disable logging for specific criteria such as reverse proxy health checks.
FOLLOW US
---------------------------------------------------
TikTok: https://www.tiktok.com/@rmtechcentral
Facebook: https://www.facebook.com/RMTechCentral
Website: https://www.rmtechcentral.com
CONTACT US
---------------------------------------------------
Contact: https://www.rmtechcentral.com/contact
CONTRIBUTE
---------------------------------------------------
Did you find this content helpful? Let us know - https://www.rmtechcentral.com/contribute
CHAPTERS
---------------------------------------------------
0:00 - Introduction
1:09 - Brief Overview
2:19 - Logging the X-Forwarded-For Header Versus L3 IP
10:23 - Filtering Logs Based on IP Address
12:10 - Defining Custom Log Files
16:50 - See Ya!
#apache #ubuntu #linux