mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-03-23 04:20:17 +00:00
[Issue 118] Clean Up Site Configs (Sites-Available)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin amcclure@ttm.sh
|
||||
ServerAdmin webmaster@thunix.net
|
||||
ServerName dev.thunix.cf
|
||||
DocumentRoot /var/www/dev.thunix.cf
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
@@ -12,3 +12,20 @@ RewriteEngine on
|
||||
RewriteCond %{SERVER_NAME} =dev.thunix.cf
|
||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||
</VirtualHost>
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin webmaster@thunix.net
|
||||
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>
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/dev.thunix.cf-0001/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/dev.thunix.cf-0001/privkey.pem
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
||||
Reference in New Issue
Block a user