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

« back to all changes in this revision

Viewing changes to src/README

  • Committer: mattgiuca
  • Date: 2007-12-11 10:42:21 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:30
Moved src/apps/browser/design to doc/notes/apps (keep all design docs in the
    doc directory).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
src directory - README
 
2
======================
 
3
 
 
4
This directory is the root of the IVLE web application proper. It is this
 
5
directory that should be installed into the web server to be executed.
 
6
Navigating to the place this directory is installed shall be the entrypoint
 
7
into the application.
 
8
 
 
9
Note that no files placed in this directory or its subdirectories will be
 
10
directly visible from the web, *except* those files placed in `/media` or its
 
11
subdirectories.
 
12
 
 
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_handler
 
25
        #PythonDebug On
 
26
        Options FollowSymLinks
 
27
        PythonOption ivle.handlerpath "/ivle-directory"
 
28
    </Directory>
 
29
    <Directory "/ivle-directory/media"> 
 
30
        SetHandler None
 
31
    </Directory>
 
32
 
 
33
Where `ivle-directory` is the path to root directory of IVLE on the web
 
34
server.
 
35
 
 
36
Uncomment `PythonDebug On` to turn on debugging.
 
37
 
 
38
Note that this disables directory listings across the whole site (which
 
39
essentially only affects the /media directory).
 
40
 
 
41
Special handling of media directory
 
42
-----------------------------------
 
43
 
 
44
One important exception: Apache must be configured so that the `/media`
 
45
directory and its subdirectories are served directly as-is, with no special
 
46
handling.
 
47
 
 
48
Files in the `/media` directory should be served with the standard MIME types
 
49
(eg. text/html for .html, image/png for .png). **No** server-side script
 
50
handling should take place in the media directory. That is, .py and .php files
 
51
should be simply served up as text/plain or whatever their default MIME type
 
52
is.
 
53
 
 
54
This simply means that the web server should NOT be configured to handle
 
55
scripts anywhere in the ivle directory, except for the above handling code.
 
56
 
 
57
Subdirectories
 
58
--------------
 
59
 
 
60
* /apps - Each plugin application has its own directory.
 
61
* /dispatch - Handler module for the top-level dispatch.
 
62
* /media - Contains files directly served by Apache (see above).
 
63
* /conf - Administrator configuration files (see /conf/README).