fix ip behind proxy

This commit is contained in:
Pau Capó 2023-12-05 12:32:12 +00:00
parent a24bd0c638
commit 94ac88a514

View file

@ -5,15 +5,16 @@
DocumentRoot /var/www/html DocumentRoot /var/www/html
<Directory /var/www/html> <Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews Options Indexes FollowSymLinks MultiViews
AllowOverride All AllowOverride All
Order allow,deny Order allow,deny
allow from all allow from all
</Directory> </Directory>
#LogLevel info ssl:warn SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
RemoteIPHeader CF-Connecting-IP #RemoteIPHeader CF-Connecting-IP
RemoteIPHeader X-Forwarded-For
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
ErrorLog ${APACHE_LOG_DIR}/error.log ErrorLog ${APACHE_LOG_DIR}/error.log