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

46 lines
1.6 KiB
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-05-24 12:42:41 +00:00
ServerAlias ftp.thunixme5v4rnoby.onion
2019-05-24 13:40:18 +00:00
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>
2019-02-16 01:42:17 +00:00
</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>
<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>
2019-02-16 01:42:17 +00:00
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>