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

« back to all changes in this revision

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

  • Committer: dcoles
  • Date: 2008-07-03 04:20:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:803
Setup: Modularised setup.py so it is now no longer over 1000 lines. This should 
allow us to get in there and tidy up each module much easier. Also removed 
updatejails since this functionality seems to be duplicated with remakeuser.py 
and remakealluser.py scripts.

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>