Project

General

Profile

Feature #873

Add localpath var to router.py to allow it to run from a subdirectory instead of the virtualhost root

Added by Rudi Daemen over 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-06-15
Due date:
% Done:

70%

Estimated time:

Description

Minor change, something like this:

LOCALPATH = '/uweb'
ROUTES = ((LOCALPATH + '/', 'Index'),
(LOCALPATH + '/test', 'Test'),
(LOCALPATH + '/(.*)', 'FourOhFour'))

This might simplify installations/configuration of pages which require no customization of available routes.

Associated revisions

Revision 338:65f06296877f (diff)
Added by Elmer de Looff over 6 years ago

Added a proper default prefix for the routes. This resolves #873.

History

#1 Updated by Elmer de Looff over 6 years ago

This is resolved in r337

There is now a configurable route prefix. In the router file, defining ROUTE_PREFIX sets this common prefix for all routes. This prefix is placed in front of all routes verbatim, any slashes required to separate paths must be added manually.

#2 Updated by Elmer de Looff over 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 70

Applied in changeset uweb|commit:65f06296877f.

Also available in: Atom PDF