[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

@@ -12,3 +12,20 @@ RewriteEngine on
RewriteCond %{SERVER_NAME} =thunix.tilde.chat
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName thunix.tilde.chat
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>
SSLCertificateFile /etc/letsencrypt/live/thunix.tilde.chat/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.tilde.chat/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>