meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sw:apache:proxy [2025/01/11 10:50] – niziak | sw:apache:proxy [2025/05/29 10:49] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== reverse proxy ====== | ====== reverse proxy ====== | ||
+ | |||
+ | ===== log x-forwarded-for ===== | ||
+ | |||
+ | From apache2.conf: | ||
+ | < | ||
+ | https:// | ||
+ | # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended. | ||
+ | # Use mod_remoteip instead. | ||
+ | </ | ||
+ | |||
+ | ==== enable remoteip module ==== | ||
+ | |||
+ | Enable the remoteip module: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | <file ini / | ||
+ | RemoteIPHeader X-Forwarded-For | ||
+ | RemoteIPTrustedProxy 192.168.0.0/ | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | |||
+ | ===== reverse proxy ===== | ||
+ | |||
+ | < | ||
+ | ProxyRequests Off | ||
+ | SSLEngine On | ||
+ | SSLProxyEngine On | ||
+ | |||
+ | ProxyPass / https:// | ||
+ | ProxyPassReverse / https:// | ||
+ | </ | ||
+ | |||
===== app behind location (folder) ===== | ===== app behind location (folder) ===== |