mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-08 02:50:18 +01:00
Remoteip fixes.
This commit is contained in:
parent
4119fa92f7
commit
1f9761a972
2 changed files with 1 additions and 1 deletions
|
@ -85,6 +85,7 @@ apache_vhosts:
|
|||
ServerSignature Off
|
||||
ProxyTimeout 600
|
||||
ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/var/www/html/{{ server_hostname }}/$1"
|
||||
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
CustomLog "/var/log/httpd/{{ server_hostname }}_access.log" combined
|
||||
<Proxy fcgi://localhost:9000>
|
||||
ProxySet timeout=600
|
||||
|
|
|
@ -3,6 +3,5 @@ LoadModule remoteip_module modules/mod_remoteip.so
|
|||
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
|
||||
RemoteIPHeader X-Real-IP
|
||||
RemoteIPHeader X-Forwarded-For
|
||||
RemoteIPInternalProxy 127.0.0.1
|
||||
RemoteIPTrustedProxy 127.0.0.1
|
||||
|
|
Loading…
Reference in a new issue