additional fixes for sites-available

This commit is contained in:
Anton McClure 2019-05-25 10:22:39 -04:00
parent 252cd53208
commit f940d4a287
No known key found for this signature in database
GPG Key ID: DC9155FB2EEAA2EF
6 changed files with 30 additions and 11 deletions

View File

@ -22,5 +22,8 @@
Order deny,allow Order deny,allow
Deny from all Deny from all
</Directorymatch> </Directorymatch>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/deb.thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/deb.thunix.net/privkey.pem
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>

View File

@ -23,9 +23,8 @@ RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Order deny,allow Order deny,allow
Deny from all Deny from all
</Directorymatch> </Directorymatch>
SSLCertificateFile /etc/letsencrypt/live/dev.thunix.cf-0001/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/dev.thunix.cf-0001/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/dev.thunix.cf/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/dev.thunix.cf/privkey.pem
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>

View File

@ -1,7 +1,7 @@
<VirtualHost *:80> <VirtualHost *:80>
ServerAdmin webmaster@thunix.net ServerAdmin webmaster@thunix.net
ServerName www.thunix.net ServerName dev.thunix.net
ServerAlias www.thunixme5v4rnoby.onion ServerAlias dev.thunixme5v4rnoby.onion
DocumentRoot /var/www/thunix.cf DocumentRoot /var/www/thunix.cf
ErrorLog ${APACHE_LOG_DIR}/error.log ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined CustomLog ${APACHE_LOG_DIR}/access.log combined
@ -10,3 +10,20 @@
Deny from all Deny from all
</Directorymatch> </Directorymatch>
</VirtualHost> </VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName dev.thunix.net
ServerAlias dev.thunixme5v4rnoby.onion
DocumentRoot /var/www/thunix.cf
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/dev.thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/dev.thunix.net/privkey.pem
</VirtualHost>
</IfModule>

View File

@ -39,7 +39,7 @@
</Directory> </Directory>
Include /etc/letsencrypt/options-ssl-apache.conf Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.cf/fullchain.pem SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.cf/privkey.pem SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.net/privkey.pem
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>

View File

@ -23,7 +23,7 @@
Deny from all Deny from all
</Directorymatch> </Directorymatch>
Include /etc/letsencrypt/options-ssl-apache.conf Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.cf/fullchain.pem SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.cf/privkey.pem SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.net/privkey.pem
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>

View File

@ -33,8 +33,8 @@ RewriteEngine on
RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Include /etc/letsencrypt/options-ssl-apache.conf Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/ftp.thunix.cf/fullchain.pem SSLCertificateFile /etc/letsencrypt/live/thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ftp.thunix.cf/privkey.pem SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net/privkey.pem
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>