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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-02-17 07:19:52 UTC
  • Revision ID: coles.david@gmail.com-20100217071952-ycxxhx2lvdm7fiyh
docs: HTTPS example now uses HTTP for public mode. Isolates public mode cookies from IVLE cookies

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# IVLE web application server configuration for Apache 2 with SSL
 
2
# Redirect all HTTP requests for normal IVLE to HTTPS
2
3
<VirtualHost *:80>
3
4
    ServerName ivle.localhost
4
5
    RedirectMatch (.*) https://ivle.localhost$1
5
6
</VirtualHost>
6
7
 
 
8
# Use HTTP for public mode
7
9
<VirtualHost *:80>
8
10
    ServerName public.ivle.localhost
9
 
    RedirectMatch (.*) https://public.ivle.localhost$1
 
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>
10
22
</VirtualHost>
11
23
 
 
24
# Use HTTPS for normal IVLE
12
25
<VirtualHost *:443>
13
26
    ServerName ivle.localhost
14
 
    ServerAlias public.ivle.localhost
15
27
 
16
28
    # SSL Engine Switch:
17
29
    # Enable/Disable SSL for this virtual host.
25
37
    SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
26
38
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
27
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
 
28
47
    <Location />
29
48
        Order allow,deny
30
49
        Allow from all