~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: 2012-06-28 01:52:02 UTC
  • Revision ID: me@williamgrant.id.au-20120628015202-f6ru7o367gt6nvgz
Hah

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
    </Location>
10
20
</VirtualHost>
11
21
 
 
22
# Use HTTPS for normal IVLE
12
23
<VirtualHost *:443>
13
24
    ServerName ivle.localhost
14
 
    ServerAlias public.ivle.localhost
15
25
 
16
26
    # SSL Engine Switch:
17
27
    # Enable/Disable SSL for this virtual host.
25
35
    SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
26
36
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
27
37
 
 
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.
 
41
    #RewriteEngine   on
 
42
    #RewriteCond     %{HTTP_HOST} ^public.ivle.localhost$
 
43
    #RewriteRule     ^(.*)$ http://%{HTTP_HOST}$1 [L,R]
 
44
 
28
45
    <Location />
29
46
        Order allow,deny
30
47
        Allow from all