I've created a web2py App using the "Custom app listening on port".
I've created a Website using that web2py App. The 'Url Path' parameter is set to: '/'
For the moment, I've managed to have that website use an URL like: www.mydomain.be/myapp
But I would like to use the more direct URL: www.mydomain.be
I've tried playing with the 'Url Path' parameter and set it to '/myapp' for example, but it does not seem to work and I didn't found anything to set my application as I would like to.
I hope someone could help me.
asked Oct 24 '11 at 14:18
I've managed to change the default application of my webapp. I've renamed my 'myapp' directory to 'init' (and deleted the other directories except 'admin'). Now I have a somewhat working webapp where www.mydomain.be redirects you to www.mydomain.be/init/default/index and all my urls are using the 'www.mydomain.be/init' url as a base. Not optimal but at least it works.
answered Oct 24 '11 at 14:40
This page has instructions to set the default application: Loading the correct default application - web2py wiki
For shorter URLs, I think the solution you're looking for is here: URL Rewriting - web2py wiki
answered Oct 24 '11 at 17:55