site/center.conf

22 lines
1.1 KiB
Plaintext

<VirtualHost *:80>
ServerAdmin aewens@tilde.center
ServerName tilde.center
ServerAlias www.tilde.center
DocumentRoot /var/www/tilde.center/public_html
ErrorLog /var/www/tilde.center/error.log
CustomLog /var/www/tilde.center/access.log combined
<Directory "/var/www/tilde.center/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php index.html
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.tilde.center [OR]
RewriteCond %{SERVER_NAME} =tilde.center
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>