Nice! I am gonna try that !
On 02 Apr 2012, at 14:50, Anthony wrote: > If you want the default app removed from static URLs, you have to set > map_static=True in your router (see > http://code.google.com/p/web2py/source/browse/router.example.py#64). However, > if your web server (e.g., Apache) is set up to serve static files directly, > you don't want to re-write your outgoing static urls unless your server knows > how to map them as incoming urls. > > Anthony > > On Monday, April 2, 2012 5:57:37 AM UTC-4, Joseph.Piron wrote: > Hi all, > > For one of my applications, I use web2py as a rest backend for a extjs > application. So, in order to redirect to this app, I have > def index(): > """ > example action using the internationalization operator T and flash > rendered by views/default/index.html or views/generic.html > """ > redirect(URL(a=request.application, c='static', f='index.html')) > > > The problem is I want to have only the server name in the url so I added a > routes.py with > routers = dict( > BASE = dict( > default_application = "webmoni", > applications = ['webmoni','admin'], > controllers = 'DEFAULT' > ) > ) > > but it seems that the redirect neglects the default_application removal > attempt from the url. > How can I achieve this ? (not to have > https://webmoni/webmoni/static/index.html as displayed url) > > Moreover, I did try the domains option but there were no way for me to get > access to the admin app? > Could anyone give an example with port 80 to app and 443 to admin using > domains option ? > > Thanks in advance !!! >