Update 'roles/webserver/files/etc/apache2/sites-available/ftp.thunix.cf.conf'

This commit is contained in:
Anton McClure 2019-01-28 11:12:36 -05:00
parent 87e613a0ff
commit 678e3a774b
1 changed files with 23 additions and 6 deletions

View File

@ -1,11 +1,28 @@
<VirtualHost *:80>
ServerAdmin amcclure@ttm.sh
ServerName thunix.cf
DocumentRoot /var/www/thunix.cf
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>
</VirtualHost>
Order deny,allow
Deny from all
</Directorymatch>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin amcclure@ttm.sh
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>
</IfModule>