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

« back to all changes in this revision

Viewing changes to src/README

  • Committer: mattgiuca
  • Date: 2007-12-11 04:24:59 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:26
src/README: Added info on how to configure Apache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
directly visible from the web, *except* those files placed in `/media` or its
11
11
subdirectories.
12
12
 
13
 
This directory should be configured specially in Apache such that all requests
14
 
to anywhere in here or any subdirectory should be handled by the Python module
15
 
`dispatch`. Dispatch will process all requests in the entire application.
 
13
Apache configuration
 
14
--------------------
 
15
 
 
16
The Apache conf file should have the following directives added to it, which
 
17
configures the site to direct all URLs to the main dispatcher (except for
 
18
files in the /media directory).
 
19
 
 
20
    # IVLE directory configuration
 
21
    # See src/README for instructions and explanation
 
22
    <Directory "/ivle-directory"> 
 
23
        SetHandler mod_python
 
24
        PythonHandler dispatch
 
25
        #PythonDebug On
 
26
        Options FollowSymLinks
 
27
    </Directory>
 
28
    <Directory "/ivle-directory/media"> 
 
29
        SetHandler None
 
30
    </Directory>
 
31
 
 
32
Where `ivle-directory` is the path to root directory of IVLE on the web
 
33
server.
 
34
 
 
35
Uncomment `PythonDebug On` to turn on debugging.
 
36
 
 
37
Note that this disables directory listings across the whole site (which
 
38
essentially only affects the /media directory).
16
39
 
17
40
Special handling of media directory
18
41
-----------------------------------
27
50
should be simply served up as text/plain or whatever their default MIME type
28
51
is.
29
52
 
30
 
Directory listings should be disabled in the `/media` directory in production,
31
 
and should just present a 403 Forbidden error.
 
53
This simply means that the web server should NOT be configured to handle
 
54
scripts anywhere in the ivle directory, except for the above handling code.
32
55
 
33
56
Subdirectories
34
57
--------------