IP RFC doc
This commit is contained in:
parent
69d59bac1c
commit
04c2c95ab4
|
@ -552,13 +552,13 @@ RPAFproxy_ips 127.0.0.1 192.0.2.10
|
|||
|
||||
*Note :* bien mettre l'IP du reverse-proxy dans `RPAFproxy_ips`
|
||||
|
||||
Voici un exemple d'utilisation en Stretch pour un reverse-proxy avec le réseau 172.131.0.0/16 :
|
||||
Voici un exemple d'utilisation en Stretch pour un reverse-proxy avec le réseau 192.0.2.0/24 :
|
||||
|
||||
~~~
|
||||
# a2enmod remoteip
|
||||
# cat /etc/apache2/conf-available/zzz-evolinux-custom.conf
|
||||
RemoteIPHeader X-Forwarded-For
|
||||
RemoteIPInternalProxy 172.31.0.0/16
|
||||
RemoteIPInternalProxy 192.0.2.0/24
|
||||
|
||||
# systemctl reload apache2
|
||||
~~~
|
||||
|
@ -583,8 +583,8 @@ Voici une configuration complète fonctionnelle pour une série de proxy sur des
|
|||
~~~
|
||||
<IfModule remoteip_module>
|
||||
RemoteIPHeader X-Forwarded-For
|
||||
RemoteIPTrustedProxy 1.2.3.4/32
|
||||
RemoteIPTrustedProxy 1.2.3.5/32
|
||||
RemoteIPTrustedProxy 192.0.2.10
|
||||
RemoteIPTrustedProxy 192.0.2.11
|
||||
|
||||
LogFormat "%v:%p %a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
||||
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
|
|
Loading…
Reference in a new issue