ansible/roles/webserver/files/etc/apache2/sites-available/ftp.thunix.net.conf

29 lines
966 B
Plaintext
Raw Normal View History

2019-02-16 01:42:17 +00:00
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
2019-02-16 02:02:10 +00:00
ServerName ftp.thunix.net
2019-02-16 01:42:17 +00:00
DocumentRoot /var/www/ftp.thunix.cf
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName ftp.thunix.cf
DocumentRoot /var/www/ftp.thunix.cf
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.cf/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.cf/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
2019-02-16 02:02:10 +00:00
</IfModule>