44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
<VirtualHost 10.231.136.3:80>
|
|
# Tous les alias
|
|
ServerName accounts.adm
|
|
ServerAlias accounts.adm.crans.org
|
|
|
|
<location "/">
|
|
SetHandler python-program
|
|
PythonPath "['/usr/scripts/'] + sys.path"
|
|
PythonHandler django.core.handlers.modpython
|
|
SetEnv DJANGO_SETTINGS_MODULE accounts.adm_settings
|
|
#PythonOption django.root /
|
|
PythonDebug On
|
|
</Location>
|
|
CustomLog /var/log/apache2/accounts.adm.log combined
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:80>
|
|
# Tous les alias
|
|
ServerName accounts
|
|
ServerAlias accounts.crans.org
|
|
|
|
RedirectMatch /.* https://accounts.crans.org/$1
|
|
TransferLog /dev/null
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<VirtualHost *:443>
|
|
ServerName accounts.crans.org
|
|
SSLEngine on
|
|
|
|
|
|
<location "/">
|
|
SetHandler python-program
|
|
PythonPath "['/usr/scripts/'] + sys.path"
|
|
PythonHandler django.core.handlers.modpython
|
|
SetEnv DJANGO_SETTINGS_MODULE accounts.settings
|
|
#PythonOption django.root /
|
|
PythonDebug On
|
|
</Location>
|
|
CustomLog /var/log/apache2/accounts.log combined
|
|
</VirtualHost>
|
|
|
|
|