Feature #873
Add localpath var to router.py to allow it to run from a subdirectory instead of the virtualhost root
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
History
#1 Updated by Elmer de Looff over 11 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 about 11 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 70
Applied in changeset uweb|commit:65f06296877f.
Added a proper default prefix for the routes. This resolves #873.