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

22 lines
842 B
Plaintext
Raw Normal View History

<VirtualHost *:80 *:443>
2019-02-16 01:42:17 +00:00
ServerAdmin webmaster@thunix.net
2019-02-16 02:02:10 +00:00
ServerName ftp.thunix.net
SSLEngine on
DocumentRoot /var/www/ftp.thunix.cf
2019-02-16 01:42:17 +00:00
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
<Directory /var/www/ftp.thunix.cf>
IndexOptions FancyIndexing NameWidth=* FoldersFirst ScanHTMLTitles DescriptionWidth=*
HeaderName HEADER.html
ReadmeName README.html
AllowOverride FileInfo Indexes
Options Indexes SymLinksIfOwnerMatch FollowSymLinks
ErrorDocument 404 default
</Directory>
SSLCertificateFile /etc/letsencrypt/live/thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net/privkey.pem
</VirtualHost>