~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 06:48:28 UTC
  • Revision ID: grantw@unimelb.edu.au-20100217064828-dr43acvapzj45lic
Add a tiny bit of descriptive text to +clone-worksheets.

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