
aperez at skarcha
Feb 1, 2010, 2:56 AM
Post #3 of 3
(239 views)
Permalink
|
|
Re: Substitution on regular expression rule
[In reply to]
|
|
Hi! 2010/1/29 Alvaro Lopez Ortega <alvaro [at] octality>: > On 23/01/2010, at 13:47, Antonio Pérez wrote: > >> I have a regular expression rule with this value: >> ^/[^/]*/chrome/common >> >> That rule set document rule as: >> /usr/local/lib/python2.6/dist-packages/Trac-0.11.6-py2.6.egg/trac/htdocs >> >> The problem here is that document root is merged with the full request: >> /usr/local/lib/python2.6/dist-packages/Trac-0.11.6-py2.6.egg/trac/htdocs/tractest2/chrome/common/css/trac.css > > My proposal would be: > > Directory: /chrome/common > - Document root: /usr/local/[...]/htdocs > - Handler: Static Content > > Regex: ^/.*?/(chrome/common.*) > - Handler: Internal Redir: /$1 Works like a charm! :-) Good point Álvaro, it's a good option, as always... :) Thanks! -- Saludos: Antonio Pérez _______________________________________________ Cherokee-dev mailing list Cherokee-dev [at] lists http://lists.octality.com/listinfo/cherokee-dev
|