Hello iggass,

The snippets of code you submitted should work if your web2py
application is named "app". Is that the case? If not just change

'/app/static/crossdomain.xml'

to

'/myappname/static/crossdomain.xml'

where "myappname" is the application that has the crossdomain.xml in
its static folder.

Stephen

On Mar 8, 4: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