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

« back to all changes in this revision

Viewing changes to setup/configure.py

  • Committer: wagrant
  • Date: 2008-12-23 01:58:44 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1063
Set PATH_INFO and PATH_TRANSLATED properly for student CGI scripts.

If the requested path doesn't exist, interpretservice now traverses up the
directory tree until it finds a prefix of the path that does exist. If we are
allowed to execute that path, we do so, giving it the trimmed bits in
PATH_INFO. If execution is not permissible, we 404 anyway.

Fixes [ 2094777 ] Serve: Allow path after CGI script

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
# In the local file system, where is the Message of the Day document
120
120
# located. This is an HTML file (just the body fragment), which will
121
121
# be displayed on the login page. It is optional."""))
 
122
config_options.append(ConfigOption("log_path",
 
123
    "/home/informatics/logs",
 
124
    """Directory where IVLE log files are stored (on the local
 
125
    file system). Note - this must be writable by the user the IVLE server 
 
126
    process runs as (usually www-data).:""",
 
127
    """
 
128
# In the local file system, where IVLE error logs should be located."""))
122
129
config_options.append(ConfigOption("public_host", "public.localhost",
123
130
    """Hostname which will cause the server to go into "public mode",
124
131
providing login-free access to student's published work:""",
212
219
    """
213
220
# The location of the subversion configuration file used by
214
221
# apache to host the user repositories."""))
 
222
config_options.append(ConfigOption("svn_group_conf",
 
223
    "/opt/ivle/svn/svn-group.conf",
 
224
    """The location of the subversion configuration file used by apache
 
225
to host group repositories:""",
 
226
    """
 
227
# The location of the subversion configuration file used by
 
228
# apache to host the user repositories."""))
215
229
config_options.append(ConfigOption("svn_repo_path", "/home/informatics/repositories",
216
230
    """The root directory for the subversion repositories:""",
217
231
    """
413
427
 
414
428
# The hostname for serving publicly accessible pages
415
429
public_host = %s
416
 
""" % (repr(root_dir),repr(public_host)))
 
430
 
 
431
# The URL under which the Subversion repositories are located.
 
432
svn_addr = %s
 
433
""" % (repr(root_dir),repr(public_host),repr(svn_addr)))
417
434
 
418
435
        conf.close()
419
436
    except IOError, (errno, strerror):
523
540
DESC="IVLE user management server"
524
541
NAME=usrmgt-server
525
542
DAEMON=/opt/ivle/scripts/$NAME
526
 
DAEMON_ARGS="''' + str(usrmgt_port) + ''' ''' + usrmgt_magic + '''"
527
543
PIDFILE=/var/run/$NAME.pid
528
544
SCRIPTNAME=/etc/init.d/usrmgt-server
529
545
 
548
564
        #   2 if daemon could not be started
549
565
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
550
566
                || return 1
551
 
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
552
 
                $DAEMON_ARGS \
 
567
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
553
568
                || return 2
554
569
        # Add code here, if necessary, that waits for the process to be ready
555
570
        # to handle requests from services started subsequently which depend