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
2020-12-16 12:17:38 +00:00
DocumentRoot /var/ftp
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>
2020-12-16 12:17:38 +00:00
<Directory /var/ftp>
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>
2019-02-16 01:42:17 +00:00
ServerAdmin webmaster@thunix.net
ServerName ftp.thunix.net
2020-12-16 12:17:38 +00:00
DocumentRoot /var/ftp
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>
2020-12-16 12:17:38 +00:00
<Directory /var/ftp>
IndexOptions FancyIndexing NameWidth=* FoldersFirst ScanHTMLTitles DescriptionWidth=*
HeaderName HEADER.html
ReadmeName README.html
AllowOverride FileInfo Indexes
Options Indexes SymLinksIfOwnerMatch FollowSymLinks
ErrorDocument 404 default
</Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
2019-05-25 14:22:39 +00:00
SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.net/privkey.pem
</VirtualHost>
</IfModule>