Compare commits

...

5 Commits

4 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName forums.thunix.net
DocumentRoot /var/www/forums.thunix.net
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 forums.thunix.net
# DocumentRoot /var/www/forums.thunix.net
# 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/forums.thunix.net/fullchain.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/forums.thunix.net/privkey.pem
# Include /etc/letsencrypt/options-ssl-apache.conf
#</VirtualHost>
#</IfModule>

View File

@ -0,0 +1,28 @@
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName git.thunix.net
DocumentRoot /var/www/git.thunix.net
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 git.thunix.net
# DocumentRoot /var/www/git.thunix.net
# 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/git.thunix.net/fullchain.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/git.thunix.net/privkey.pem
# Include /etc/letsencrypt/options-ssl-apache.conf
#</VirtualHost>
#</IfModule>

View File

@ -0,0 +1,28 @@
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName lists.thunix.net
DocumentRoot /var/www/lists.thunix.net
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 lists.thunix.net
# DocumentRoot /var/www/lists.thunix.net
# 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/lists.thunix.net/fullchain.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/lists.thunix.net/privkey.pem
# Include /etc/letsencrypt/options-ssl-apache.conf
#</VirtualHost>
#</IfModule>

View File

@ -47,3 +47,18 @@
copy:
src: ../files/etc/apache2/sites-available/ftp.thunix.net.conf
dest: /etc/apache2/sites-available/ftp.thunix.net.conf
- name: Deploy apache2 site conf for forums.thunix.net.conf
copy:
src: ../files/etc/apache2/sites-available/forums.thunix.net.conf
dest: /etc/apache2/sites-available/forums.thunix.net.conf
- name: Deploy apache2 site conf for git.thunix.net.conf
copy:
src: ../files/etc/apache2/sites-available/git.thunix.net.conf
dest: /etc/apache2/sites-available/git.thunix.net.conf
- name: Deploy apache2 site conf for lists.thunix.net.conf
copy:
src: ../files/etc/apache2/sites-available/lists.thunix.net.conf
dest: /etc/apache2/sites-available/lists.thunix.net.conf