1
# IVLE web application server configuration for Apache 2 with SSL
2
# Redirect all HTTP requests for normal IVLE to HTTPS
4
ServerName ivle.localhost
5
RedirectMatch (.*) https://ivle.localhost$1
8
# Use HTTP for public mode
10
ServerName public.ivle.localhost
17
PythonHandler ivle.dispatch
19
PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
20
PythonOption mod_python.session.cookie_name ivle
24
# Use HTTPS for normal IVLE
26
ServerName ivle.localhost
29
# Enable/Disable SSL for this virtual host.
32
# A self-signed (snakeoil) certificate can be created by installing the
34
# See /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
35
# If both key and certificate are stored in the same file, only the
36
# SSLCertificateFile directive is needed.
37
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
38
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
40
# Public requests should be served by HTTP (Optional)
41
# Note: Handing public mode requests with HTTPS may cause certificate
42
# errors unless also signed. Requires mod_rewrite.
44
#RewriteCond %{HTTP_HOST} ^public.ivle.localhost$
45
#RewriteRule ^(.*)$ http://%{HTTP_HOST}$1 [L,R]
52
PythonHandler ivle.dispatch
54
PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
55
PythonOption mod_python.session.cookie_name ivle