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 12:07] – 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 ===== | ===== reverse proxy ===== | ||
Line 8: | Line 31: | ||
SSLProxyEngine On | SSLProxyEngine On | ||
- | ProxyPass / https:// | + | ProxyPass / https:// |
- | ProxyPassReverse / https:// | + | ProxyPassReverse / https:// |
</ | </ | ||