They did work after I had restarted the server, no problem with that. I wonder if there is any clean way to expose static resources which don't belong to any particular application? Some sort of "root" static folder...
On Mar 9, 1:53 am, stephen <stephenino...@gmail.com> wrote: > 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 <gas...@gmail.com> 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/web2py@googlegroups.com/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 web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.