2018-12-21 07:50:46 -07:00
|
|
|
<VirtualHost *:80>
|
2019-02-16 00:19:56 +00:00
|
|
|
ServerAdmin webmaster@thunix.net
|
2018-12-21 07:50:46 -07:00
|
|
|
ServerName www.thunix.cf
|
2018-12-22 10:27:46 -05:00
|
|
|
DocumentRoot /var/www/thunix.cf
|
2018-12-21 07:50:46 -07:00
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
2018-12-22 10:46:03 -05:00
|
|
|
<Directorymatch "^/.*/\.git/">
|
|
|
|
|
Order deny,allow
|
|
|
|
|
Deny from all
|
|
|
|
|
</Directorymatch>
|
2019-07-08 21:54:42 -04: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>
|
2018-12-21 07:50:46 -07:00
|
|
|
</VirtualHost>
|
2019-05-24 16:17:58 -04:00
|
|
|
<IfModule mod_ssl.c>
|
|
|
|
|
<VirtualHost *:443>
|
|
|
|
|
ServerAdmin webmaster@thunix.net
|
|
|
|
|
ServerName www.thunix.cf
|
|
|
|
|
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>
|
2019-07-08 21:54:42 -04: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-05-24 16:17:58 -04:00
|
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
|
|
|
SSLCertificateFile /etc/letsencrypt/live/www.thunix.cf/fullchain.pem
|
|
|
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/www.thunix.cf/privkey.pem
|
|
|
|
|
</VirtualHost>
|
|
|
|
|
</IfModule>
|