Update to the working config
This commit is contained in:
parent
ccf8cf83cc
commit
093083cfa5
|
@ -9,32 +9,5 @@
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
</Directorymatch>
|
</Directorymatch>
|
||||||
RewriteEngine on
|
Redirect permanent / https://thunix.net/
|
||||||
RewriteCond %{SERVER_NAME} =thunix.net
|
|
||||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
<IfModule mod_ssl.c>
|
|
||||||
<VirtualHost *:443>
|
|
||||||
ServerAdmin webmaster@thunix.net
|
|
||||||
ServerName thunix.net
|
|
||||||
ServerAlias thunixme5v4rnoby.onion
|
|
||||||
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
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/thunix.net-0001/fullchain.pem
|
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net-0001/privkey.pem
|
|
||||||
|
|
||||||
</VirtualHost>
|
|
||||||
</IfModule>
|
|
||||||
|
|
Loading…
Reference in New Issue