~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 04:17:42 UTC
  • Revision ID: coles.david@gmail.com-20100217041742-w7ggjrvku1fdv04k
docs: Example SSL configuration

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# IVLE web application server configuration for Apache 2 with SSL
 
2
<VirtualHost *:80>
 
3
    ServerName ivle.localhost
 
4
    RedirectMatch (.*) https://ivle.localhost$1
 
5
</VirtualHost>
 
6
 
 
7
<VirtualHost *:80>
 
8
    ServerName public.ivle.localhost
 
9
    RedirectMatch (.*) https://public.ivle.localhost$1
 
10
</VirtualHost>
 
11
 
 
12
<VirtualHost *:443>
 
13
    ServerName ivle.localhost
 
14
    ServerAlias public.ivle.localhost
 
15
 
 
16
    # SSL Engine Switch:
 
17
    # Enable/Disable SSL for this virtual host.
 
18
    SSLEngine on
 
19
 
 
20
    # A self-signed (snakeoil) certificate can be created by installing the
 
21
    # ssl-cert package.
 
22
    # See /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
 
23
    # If both key and certificate are stored in the same file, only the
 
24
    # SSLCertificateFile directive is needed.
 
25
    SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
 
26
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
 
27
 
 
28
    <Location />
 
29
        Order allow,deny
 
30
        Allow from all
 
31
 
 
32
        SetHandler mod_python
 
33
        PythonHandler ivle.dispatch
 
34
        #PythonDebug On
 
35
        PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
 
36
        PythonOption mod_python.session.cookie_name ivle
 
37
    </Location>
 
38
</VirtualHost>