Merge branch 'thunix-ftp' of thunix/ansible into master

This commit is contained in:
Anton McClure 2019-01-28 11:15:29 -05:00 committed by Gitea
commit 4a3532226b
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<VirtualHost *:80>
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>
</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>

View File

@ -92,6 +92,11 @@
src: ../files/etc/apache2/sites-available/you.wer.ee.conf
dest: /etc/apache2/sites-available/you.wer.ee.conf
- name: Deploy Apache2 Site Config ftp.thunix.cf.conf
copy:
src: ../files/etc/apache2/sites-available/ftp.thunix.cf.conf
dest: /etc/apache2/sites-available/ftp.thunix.cf.conf
##Mods
#- name: Deploy Apache2 Module Config php7.0.conf