('.*:https?://dashboard\.thadeusb\.com:.* /admin(?P<any>.*)',
'/admin\g<any>'),
  ('.*:https?://thadeusb\.com:.* /(?P<controller>.*)',
'/blogitizor/\g<controller>'),

This is what I am currently using.

--
Thadeus





On Sun, Aug 8, 2010 at 7:10 PM, Andrew Thompson <[email protected]> wrote:
>  I can not wrap my head around routes_in. I'm attempting to host 3 sites via
> lighttpd and fcgihandler.py (is this the best way?)
>
> I ripped this mostly from a mdpierro post, and tweaked it for my domain, but
> I'm just not making progress:
>
>  ('(.*):https?://(.*)mysite\.com:(.*) /favicon.ico',
> '/mysite/static/favicon.ico'),
>
> http://mysite.com/mysite/static/favicon.ico <-- this link works.
> http://myste.com/favicon.ico <-- Invalid request
>
> I've been playing with the builtin doctest, and this passes:
>
>>>> filter_url('http://mysite.com/favicon.ico')
>  'http://mysite.com/mysite/static/favicon.ico'
>
> Any ideas what I'm doing wrong?
>
> I have two more lines commented out that I also want to put in:
>
>  ('(.*):https?://(.*)mysite\.com:(.*) /$anything', '/mysite/$anything'),
>  ('(.*):https?://(.*)mysite\.com:(.*) /images/$anything',
> '/mysite/static/images/$anything'),
>
> I'm not sure, is $anything is compatible with all those .*'es?
>
> I do need the / to /mysite's to keep the sites separated from each other,
> don't I?
>
> Any help appreciated.
>
> --
> Andrew Thompson
> http://aktzero.com/
>
>

Reply via email to