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

30 lines
1010 B
Plaintext
Raw Normal View History

<VirtualHost *:80 *:443>
2019-02-10 03:53:27 +00:00
ServerAdmin webmaster@thunix.net
ServerName www.thunix.net
SSLEngine on
ServerAlias kbguajmip4jlr2k3vpscmvymtxqnft267ox2ij6pdrgb5jcvx3kctkyd.onion
DocumentRoot /var/www/thunix.cf
2019-02-10 03:53:27 +00:00
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/thunix.cf>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
2019-02-10 03:53:27 +00:00
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
Alias /webmail /var/www/rainloop
<Directory /var/www/rainloop>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
RewriteEngine On
# Redirect permanent / https://thunix.net
SSLCertificateFile "/etc/letsencrypt/live/thunix.net/cert.pem"
SSLCertificateChainFile "/etc/letsencrypt/live/thunix.net/fullchain.pem"
SSLCertificateKeyFile "/etc/letsencrypt/live/thunix.net/privkey.pem"
</VirtualHost>