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

This commit is contained in:
deepend 2023-06-28 19:11:46 +00:00
parent d2bd1c9086
commit e43b59e0ac
1 changed files with 11 additions and 16 deletions

View File

@ -1,6 +1,8 @@
<VirtualHost *:80 *:443>
ServerAdmin webmaster@thunix.net
ServerName www.thunix.net
SSLEngine on
ServerAlias i5pmp326di6rgydkk4vzjbevncwkdreli2aak72btpg7sofhsadqqeid.onion thunix.tilde
DocumentRoot /var/www/thunix.cf
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
@ -10,20 +12,13 @@
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>
# 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
Order deny,allow
Deny from all
</Directorymatch>
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>