Very stupid of me.
I restarted the server multiple times to see if it works, but never
figured out that I needed to actually close the server process and
execute it anew.
Apparently, it loads mapping from 'routes.py' only once during initial
start-up.
Now it works as expected.

By the way, if there's some more intelligent way of exposing
crossdomain.xml at the top level of the server, rather than rerouting
to static folder of some application, I'd be happy to know.

Thanks

On Mar 8, 11:14 pm, iggass <[email protected]> wrote:
> Hello,
>
> I'm running web2py (v1.76.1 on Win 2K3) server for development
> purposes.
> I would like to expose 'crossdomain.xml' at the top level of my site
> for the sake of providing AMF service and being able to access it from
> another domain, like:http://example.com:8000/crossdomain.xml
>
> As far as I understand, the only (and not so aesthetic) way to do it,
> is to rewrite URL using 'routes.py'.
> So I placed crossdomain.xml in the 'static' folder of my application,
> and created 'routes.py' under 'web2py' folder with the following
> content:
> routes_in = (('.*:/crossdomain.xml', '/app/static/crossdomain.xml'),)
>
> However, it doesn't work, I'm getting 'Invalid request'.
> So I tried (as Massimo suggested 
> herehttp://www.mail-archive.com/[email protected]/msg26278.html):
> routes_in = (('/crossdomain.xml', '/app/static/crossdomain.xml'),)
> to no avail.
>
> I'd greatly appreciate any help!
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to