2018-12-21 14:50:46 +00:00
|
|
|
<VirtualHost *:80>
|
2019-02-19 16:10:55 +00:00
|
|
|
ServerAdmin webmaster@thunix.net
|
2019-09-05 23:05:06 +00:00
|
|
|
ServerName thunix.tilde.chat thunix.tilde
|
2019-02-19 16:10:55 +00:00
|
|
|
DocumentRoot /var/www/thunix.cf
|
2018-12-21 14:50:46 +00:00
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
2019-02-19 16:10:55 +00:00
|
|
|
<Directorymatch "^/.*/\.git/">
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</Directorymatch>
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{SERVER_NAME} =thunix.tilde.chat
|
|
|
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
2018-12-21 14:50:46 +00:00
|
|
|
</VirtualHost>
|
2019-05-24 20:17:58 +00:00
|
|
|
<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>
|