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

15 lines
448 B
Plaintext

<VirtualHost *:80>
ServerAdmin amcclure@ttm.sh
ServerName dev.thunix.cf
DocumentRoot /var/www/dev.thunix.cf
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
RewriteEngine on
RewriteCond %{SERVER_NAME} =dev.thunix.cf
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>