mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-03-20 19:30:18 +00:00
Update 'roles/webserver/files/etc/apache2/sites-available/www.thunix.net.conf'
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
<VirtualHost *:80 *:443>
|
<VirtualHost *:80 *:443>
|
||||||
ServerAdmin webmaster@thunix.net
|
ServerAdmin webmaster@thunix.net
|
||||||
ServerName www.thunix.net
|
ServerName www.thunix.net
|
||||||
|
SSLEngine on
|
||||||
|
ServerAlias i5pmp326di6rgydkk4vzjbevncwkdreli2aak72btpg7sofhsadqqeid.onion thunix.tilde
|
||||||
DocumentRoot /var/www/thunix.cf
|
DocumentRoot /var/www/thunix.cf
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
@@ -10,20 +12,13 @@
|
|||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directorymatch "^/.*/\.git/">
|
<Directorymatch "^/.*/\.git/">
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
</Directorymatch>
|
</Directorymatch>
|
||||||
<IfModule mod_userdir.c>
|
RewriteEngine On
|
||||||
UserDir public_html
|
# Redirect permanent / https://thunix.net
|
||||||
UserDir disabled root
|
|
||||||
<Directory /home/*/public_html>
|
SSLCertificateFile "/etc/letsencrypt/live/thunix.net/cert.pem"
|
||||||
AllowOverride FileInfo AuthConfig Limit Indexes
|
SSLCertificateChainFile "/etc/letsencrypt/live/thunix.net/fullchain.pem"
|
||||||
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
SSLCertificateKeyFile "/etc/letsencrypt/live/thunix.net/privkey.pem"
|
||||||
Require method GET POST OPTIONS
|
|
||||||
</Directory>
|
|
||||||
</IfModule>
|
|
||||||
# Redirect permanent / https://www.thunix.net/
|
|
||||||
#Include /etc/letsencrypt/options-ssl-apache.conf
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/thunix.net/fullchain.pem
|
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net/privkey.pem
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
Reference in New Issue
Block a user