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
22
# Use HTTPS for normal IVLE
24
ServerName ivle.localhost
27
# Enable/Disable SSL for this virtual host.
30
# A self-signed (snakeoil) certificate can be created by installing the
32
# See /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
33
# If both key and certificate are stored in the same file, only the
34
# SSLCertificateFile directive is needed.
35
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
36
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
38
# Public requests should be served by HTTP (Optional)
39
# Note: Handing public mode requests with HTTPS may cause certificate
40
# errors unless also signed. Requires mod_rewrite.
42
#RewriteCond %{HTTP_HOST} ^public.ivle.localhost$
43
#RewriteRule ^(.*)$ http://%{HTTP_HOST}$1 [L,R]
50
PythonHandler ivle.dispatch
52
PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
53
PythonOption mod_python.session.cookie_name ivle