On Aug 8, 2010, at 6:00 PM, Andrew Thompson wrote:
> On 8/8/2010 8:30 PM, Jonathan Lundell wrote:
>> On Aug 8, 2010, at 5:10 PM, Andrew Thompson 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
>> You meant 'mysite', right?
> Yeah, examplification typo.
>
>>> 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?
>> You're restarting web2py when you change routes.py?
> Yes, I am.
>
>> I think it'd be useful to be able to turn on logging of URL rewriting. It'd
>> be pretty verbose, I suppose, but useful for this kind of problem.
>>
>>> I do need the / to /mysite's to keep the sites separated from each other,
>>> don't I?
>> I don't follow the question.
> Ignore it, I realized the initial domain to site mapping is happening in
> lighttpd.
Is it possible that lighttpd is altering the URL enough that it doesn't match
what you've got in routes.py?