diff --git a/apache/site.conf b/apache/site.conf index 00cb2dc..48d406f 100644 --- a/apache/site.conf +++ b/apache/site.conf @@ -1,19 +1,20 @@ #ServerName www.example.com - + ServerAdmin contact@ DocumentRoot /var/www/html - - - Options Indexes FollowSymLinks MultiViews - AllowOverride All - Order allow,deny - allow from all - - - #LogLevel info ssl:warn - RemoteIPHeader CF-Connecting-IP + + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Order allow,deny + allow from all + + + SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on + + #RemoteIPHeader CF-Connecting-IP + RemoteIPHeader X-Forwarded-For LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined ErrorLog ${APACHE_LOG_DIR}/error.log