Update sites-available to the working conf

This commit is contained in:
Naglfar
2021-09-29 20:07:41 +02:00
parent 3204405825
commit 7e5359ac79
6 changed files with 11 additions and 81 deletions

View File

@@ -2,14 +2,14 @@
ServerAdmin webmaster@thunix.net
ServerName ftp.thunix.net
ServerAlias ftp.thunixme5v4rnoby.onion
DocumentRoot /var/ftp
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/ftp>
<Directory /var/www/ftp.thunix.cf>
IndexOptions FancyIndexing NameWidth=* FoldersFirst ScanHTMLTitles DescriptionWidth=*
HeaderName HEADER.html
ReadmeName README.html
@@ -18,28 +18,3 @@
ErrorDocument 404 default
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName ftp.thunix.net
DocumentRoot /var/ftp
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
<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
SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.net/privkey.pem
</VirtualHost>
</IfModule>