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
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
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).
20
# IVLE directory configuration
21
# See src/README for instructions and explanation
22
<Directory "/ivle-directory">
24
PythonHandler dispatch_handler
26
Options FollowSymLinks
27
PythonOption ivle.handlerpath "/ivle-directory"
29
<Directory "/ivle-directory/media">
33
Where `ivle-directory` is the path to root directory of IVLE on the web
36
Uncomment `PythonDebug On` to turn on debugging.
38
Note that this disables directory listings across the whole site (which
39
essentially only affects the /media directory).
41
Application configuration
42
-------------------------
44
Additional settings must be written to allow IVLE to work (such as the root
45
URL and student file space directories). The web application will throw an
46
exception if these have not been set up (if conf/conf.py does not exist).
48
Run setup.py, a command-line tool, which will interactively create
51
Special handling of media directory
52
-----------------------------------
54
One important exception: Apache must be configured so that the `/media`
55
directory and its subdirectories are served directly as-is, with no special
58
Files in the `/media` directory should be served with the standard MIME types
59
(eg. text/html for .html, image/png for .png). **No** server-side script
60
handling should take place in the media directory. That is, .py and .php files
61
should be simply served up as text/plain or whatever their default MIME type
64
This simply means that the web server should NOT be configured to handle
65
scripts anywhere in the ivle directory, except for the above handling code.
70
* /apps - Each plugin application has its own directory.
71
* /dispatch - Handler module for the top-level dispatch.
72
* /media - Contains files directly served by Apache (see above).
73
* /conf - Administrator configuration files (see /conf/README).