ansible/roles/webserver/files/etc/apache2/sites-available/thunix.net.conf

15 lines
444 B
Plaintext
Raw Normal View History

2019-02-10 03:53:27 +00:00
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName thunix.net
DocumentRoot /var/www/thunix.cf
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
2019-02-16 00:16:27 +00:00
RewriteEngine on
RewriteCond %{SERVER_NAME} =thunix.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
2019-02-10 03:53:27 +00:00
</VirtualHost>