Updating confs
This commit is contained in:
parent
50c0b5cecd
commit
9138fcc9fc
|
@ -0,0 +1,17 @@
|
||||||
|
<IfModule mod_ssl.c>
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerAdmin webmaster@thunix.net
|
||||||
|
ServerName dev.thunix.cf
|
||||||
|
DocumentRoot /var/www/dev.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/phoenix.thunix.cf/fullchain.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/phoenix.thunix.cf/privkey.pem
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
|
@ -0,0 +1,14 @@
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerAdmin webmaster@thunix.net
|
||||||
|
ServerName dev.thunix.cf
|
||||||
|
DocumentRoot /var/www/dev.thunix.cf
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
<Directorymatch "^/.*/\.git/">
|
||||||
|
Order deny,allow
|
||||||
|
Deny from all
|
||||||
|
</Directorymatch>
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteCond %{SERVER_NAME} =dev.thunix.cf
|
||||||
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||||
|
</VirtualHost>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerAdmin webmaster@thunix.net
|
||||||
|
ServerName www.thunix.net
|
||||||
|
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>
|
||||||
|
</VirtualHost>
|
|
@ -0,0 +1,28 @@
|
||||||
|
<VirtualHost *:80>
|
||||||
|
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>
|
||||||
|
</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>
|
||||||
|
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>
|
||||||
|
</IfModule>
|
|
@ -0,0 +1,17 @@
|
||||||
|
<IfModule mod_ssl.c>
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerAdmin webmaster@thunix.net
|
||||||
|
ServerName phoenix.thunix.cf
|
||||||
|
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/phoenix.thunix.cf/fullchain.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/phoenix.thunix.cf/privkey.pem
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
|
@ -0,0 +1,14 @@
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerAdmin webmaster@thunix.net
|
||||||
|
ServerName phoenix.thunix.cf
|
||||||
|
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>
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteCond %{SERVER_NAME} =phoenix.thunix.cf
|
||||||
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||||
|
</VirtualHost>
|
|
@ -0,0 +1,23 @@
|
||||||
|
<IfModule mod_ssl.c>
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerAdmin webmaster@thunix.net
|
||||||
|
ServerName thunix.net
|
||||||
|
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>
|
||||||
|
RewriteEngine on
|
||||||
|
# Some rewrite rules in this file were disabled on your HTTPS site,
|
||||||
|
# because they have the potential to create redirection loops.
|
||||||
|
|
||||||
|
RewriteCond %{SERVER_NAME} =thunix.net
|
||||||
|
RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||||
|
|
||||||
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||||
|
SSLCertificateFile /etc/letsencrypt/live/thunix.net-0001/fullchain.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net-0001/privkey.pem
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
|
@ -0,0 +1,17 @@
|
||||||
|
<IfModule mod_ssl.c>
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerAdmin webmaster@thunix.net
|
||||||
|
ServerName www.thunix.net
|
||||||
|
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>
|
||||||
|
|
||||||
|
SSLCertificateFile /etc/letsencrypt/live/www.thunix.net/fullchain.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/www.thunix.net/privkey.pem
|
||||||
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
|
@ -42,3 +42,8 @@
|
||||||
copy:
|
copy:
|
||||||
src: ../files/etc/apache2/sites-available/www.thunix.net.conf
|
src: ../files/etc/apache2/sites-available/www.thunix.net.conf
|
||||||
dest: /etc/apache2/sites-available/www.thunix.net.conf
|
dest: /etc/apache2/sites-available/www.thunix.net.conf
|
||||||
|
|
||||||
|
- name: Deploy apache2 site conf for ftp.thunix.net.conf
|
||||||
|
copy:
|
||||||
|
src: ../files/etc/apache2/sites-available/ftp.thunix.net.conf
|
||||||
|
dest: /etc/apache2/sites-available/ftp.thunix.net.conf
|
||||||
|
|
Loading…
Reference in New Issue