[Issue 118] Clean Up Site Configs (Sites-Available)

This commit is contained in:
Anton McClure
2019-05-24 16:17:58 -04:00
parent 01992b2c22
commit b17a7b2fd7
14 changed files with 115 additions and 147 deletions

View File

@@ -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>