2019-02-10 03:53:27 +00:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerAdmin webmaster@thunix.net
|
2019-09-08 20:20:42 +00:00
|
|
|
ServerName www.thunix.net
|
|
|
|
ServerAlias www.thunix.tilde thunix.tilde
|
2019-05-25 15:29:59 +00:00
|
|
|
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
|
|
|
|
<Directorymatch "^/.*/\.git/">
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</Directorymatch>
|
2019-07-09 01:54:33 +00:00
|
|
|
<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>
|
2019-02-10 03:53:27 +00:00
|
|
|
</VirtualHost>
|
2019-05-24 20:17:58 +00:00
|
|
|
<IfModule mod_ssl.c>
|
|
|
|
<VirtualHost *:443>
|
|
|
|
ServerAdmin webmaster@thunix.net
|
|
|
|
ServerName www.thunix.net
|
2019-05-25 15:29:59 +00:00
|
|
|
DocumentRoot /var/www/thunix.cf
|
2019-05-24 20:17:58 +00:00
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
<Directorymatch "^/.*/\.git/">
|
2019-07-13 23:36:37 +00:00
|
|
|
AllowOverride All
|
2019-05-24 20:17:58 +00:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</Directorymatch>
|
2019-07-09 01:54:33 +00:00
|
|
|
<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>
|
2019-07-13 23:36:37 +00:00
|
|
|
<Directory /var/www/thunix.cf>
|
|
|
|
Options Indexes FollowSymLinks MultiViews
|
|
|
|
# changed from None to FileInfo
|
|
|
|
AllowOverride FileInfo
|
|
|
|
Order allow,deny
|
|
|
|
allow from all
|
|
|
|
</Directory>
|
2019-07-09 01:54:33 +00:00
|
|
|
</IfModule>
|
2019-05-24 20:17:58 +00:00
|
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
|
|
SSLCertificateFile /etc/letsencrypt/live/www.thunix.net/fullchain.pem
|
|
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/www.thunix.net/privkey.pem
|
|
|
|
</VirtualHost>
|
|
|
|
</IfModule>
|