~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to examples/config/apache-ssl.conf

  • Committer: William Grant
  • Date: 2010-02-17 08:37:22 UTC
  • Revision ID: grantw@unimelb.edu.au-20100217083722-ji4v6fbztngy0p3s
Add UI to edit/delete enrolments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# IVLE web application server configuration for Apache 2 with SSL
 
2
# Redirect all HTTP requests for normal IVLE to HTTPS
 
3
<VirtualHost *:80>
 
4
    ServerName ivle.localhost
 
5
    RedirectMatch (.*) https://ivle.localhost$1
 
6
</VirtualHost>
 
7
 
 
8
# Use HTTP for public mode
 
9
<VirtualHost *:80>
 
10
    ServerName public.ivle.localhost
 
11
 
 
12
    <Location />
 
13
        Order allow,deny
 
14
        Allow from all
 
15
 
 
16
        SetHandler mod_python
 
17
        PythonHandler ivle.dispatch
 
18
        #PythonDebug On
 
19
        PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
 
20
        PythonOption mod_python.session.cookie_name ivle
 
21
    </Location>
 
22
</VirtualHost>
 
23
 
 
24
# Use HTTPS for normal IVLE
 
25
<VirtualHost *:443>
 
26
    ServerName ivle.localhost
 
27
 
 
28
    # SSL Engine Switch:
 
29
    # Enable/Disable SSL for this virtual host.
 
30
    SSLEngine on
 
31
 
 
32
    # A self-signed (snakeoil) certificate can be created by installing the
 
33
    # ssl-cert package.
 
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
 
39
 
 
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.
 
43
    #RewriteEngine   on
 
44
    #RewriteCond     %{HTTP_HOST} ^public.ivle.localhost$
 
45
    #RewriteRule     ^(.*)$ http://%{HTTP_HOST}$1 [L,R]
 
46
 
 
47
    <Location />
 
48
        Order allow,deny
 
49
        Allow from all
 
50
 
 
51
        SetHandler mod_python
 
52
        PythonHandler ivle.dispatch
 
53
        #PythonDebug On
 
54
        PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
 
55
        PythonOption mod_python.session.cookie_name ivle
 
56
    </Location>
 
57
</VirtualHost>