Update 'roles/webserver/files/etc/apache2/sites-available/thunix.net.conf'
This commit is contained in:
parent
f4570f2436
commit
d2bd1c9086
|
@ -1,6 +1,8 @@
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80 *:443>
|
||||||
ServerAdmin webmaster@thunix.net
|
ServerAdmin webmaster@thunix.net
|
||||||
ServerName thunix.net
|
ServerName 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,37 +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>
|
||||||
# Redirect permanent / https://thunix.net/
|
RewriteEngine On
|
||||||
</VirtualHost>
|
# Redirect permanent / https://thunix.net
|
||||||
<IfModule mod_ssl.c>
|
|
||||||
<VirtualHost *:443>
|
SSLCertificateFile "/etc/letsencrypt/live/thunix.net/cert.pem"
|
||||||
ServerAdmin webmaster@thunix.net
|
SSLCertificateChainFile "/etc/letsencrypt/live/thunix.net/fullchain.pem"
|
||||||
ServerName thunix.net
|
SSLCertificateKeyFile "/etc/letsencrypt/live/thunix.net/privkey.pem"
|
||||||
DocumentRoot /var/www/thunix.cf
|
|
||||||
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>
|
|
||||||
<Directorymatch "^/.*/\.git/">
|
|
||||||
Order deny,allow
|
|
||||||
Deny from all
|
|
||||||
</Directorymatch>
|
|
||||||
<IfModule mod_userdir.c>
|
|
||||||
UserDir public_html
|
|
||||||
UserDir disabled root
|
|
||||||
<Directory /home/*/public_html>
|
|
||||||
AllowOverride FileInfo AuthConfig Limit Indexes
|
|
||||||
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
|
||||||
Require method GET POST OPTIONS
|
|
||||||
</Directory>
|
|
||||||
</IfModule>
|
|
||||||
#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>
|
Loading…
Reference in New Issue