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

« back to all changes in this revision

Viewing changes to doc/setup/ivle.conf

Add an XHTMLUnauthorizedView which redirects unauthenticated users to the
login page if a page raises an Unauthorized. Alter UserSettingsView to raise
one in the right cases, for testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Custom IVLE Apache config script
 
2
# Configures IVLE at the root of the site.
 
3
NameVirtualHost *
 
4
ServerAdmin ADMIN@EXAMPLE.COM
 
5
ServerName IVLE.EXAMPLE.COM
 
6
 
 
7
<VirtualHost *>
 
8
    DocumentRoot /usr/local/share/ivle/www
 
9
    <Directory />
 
10
        Options FollowSymLinks
 
11
        AllowOverride None
 
12
    </Directory>
 
13
    <Directory "/usr/local/share/ivle/www/">
 
14
        AllowOverride None
 
15
        Order allow,deny
 
16
        allow from all
 
17
        SetHandler mod_python
 
18
        PythonHandler ivle.dispatch
 
19
        #PythonDebug On
 
20
        Options FollowSymLinks
 
21
        PythonOption mod_python.file_session.database_directory /var/lib/ivle/sessions
 
22
        PythonOption mod_python.session.cookie_name ivle
 
23
    </Directory>
 
24
    <Directory "/usr/local/share/ivle/www/media">
 
25
        SetHandler None
 
26
    </Directory>
 
27
    <Directory "/usr/local/share/ivle/www/php">
 
28
        SetHandler None
 
29
    </Directory>
 
30
 
 
31
    ErrorLog /var/log/apache2/error.log
 
32
 
 
33
    # Possible values include: debug, info, notice, warn, error, crit,
 
34
    # alert, emerg.
 
35
    LogLevel warn
 
36
 
 
37
    CustomLog /var/log/apache2/access.log combined
 
38
    ServerSignature On
 
39
</VirtualHost>