ansible-role-apache_ssl_vhosts/files/default_host.conf

18 lines
446 B
Text
Raw Normal View History

2022-10-11 09:18:51 +02:00
## Default docroot
DocumentRoot "/var/www/html/"
## Directories, there should at least be a declaration for DocumentRoot
<Directory "/var/www/html/">
Options +FollowSymlinks -Indexes
AllowOverride All
</Directory>
## Logging
ErrorLog "/var/log/apache2/localhost_error.log"
ServerSignature Off
CustomLog "/var/log/apache2/localhost_access.log" combined
## Redirect rules
RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]