24 lines
627 B
Text
24 lines
627 B
Text
<VirtualHost *:80>
|
|
#ServerName www.example.com
|
|
|
|
ServerAdmin contact@
|
|
DocumentRoot /var/www/html
|
|
|
|
<Directory /var/www/html>
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride All
|
|
Order allow,deny
|
|
allow from all
|
|
</Directory>
|
|
|
|
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
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
#Include conf-available/serve-cgi-bin.conf
|
|
</VirtualHost>
|