Commit 50896c5c authored by rexxnor's avatar rexxnor

updated templates for further vhosts

parent 8730eb95
......@@ -8,6 +8,9 @@ WSGIProcessGroup {{ ansible_eth0.ipv4.address }}
Alias /static/ /var/www/html/ppm/prepaidmatewebsite/prepaid/static/
<VirtualHost *:80>
ServerName prepaid.mate
ServerAlias mate.chaostreffbern.ch
ServerAlias 10.0.0.13
<Directory "/var/www/html/ppm/prepaidmatewebsite/prepaidmatewebsite">
<Files wsgi.py>
Require all granted
......@@ -17,5 +20,22 @@ Require all granted
<Directory "/var/www/html/ppm/prepaidmatewebsite/prepaid/static">
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName prepaid.mate
ServerAlias mate.chaostreffbern.ch
ServerAlias 10.0.0.13
SSLEngine on
SSLCertificateFile "/etc/apache2/ssl/prepaidmate_cert.pem"
SSLCertificateKeyFile "/etc/apache2/ssl/prepaidmate_key.pem"
<Directory "/var/www/html/ppm/prepaidmatewebsite/prepaidmatewebsite">
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory "/var/www/html/ppm/prepaidmatewebsite/prepaid/static">
Require all granted
</Directory>
</VirtualHost>
......@@ -21,7 +21,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ['{{ ansible_eth0.ipv4.address }}', '127.0.0.1', 'localhost']
ALLOWED_HOSTS = ['{{ ansible_eth0.ipv4.address }}', '127.0.0.1', 'localhost', 'prepaid.mate', 'mate.chaostreffbern.ch']
# Application definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment