ansible/roles/webserver/files/etc/apache2/sites-available/thunix.net-le-ssl.conf

32 lines
968 B
Plaintext
Raw Normal View History

2019-02-16 01:42:17 +00:00
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName thunix.net
2019-05-18 03:04:31 +00:00
ServerAlias thunixme5v4rnoby.onion
2019-02-16 01:42:17 +00:00
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>
RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.
RewriteCond %{SERVER_NAME} =thunix.net
RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Include /etc/letsencrypt/options-ssl-apache.conf
2019-02-16 02:29:20 +00:00
SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.cf/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.cf/privkey.pem
2019-03-17 20:04:43 +00:00
<Location /shell>
ProxyPass http://localhost:4200/
Order allow,deny
Allow from all
</Location>
2019-02-16 01:42:17 +00:00
</VirtualHost>
</IfModule>