Alex Rivera | Logout

Web2py default app

Asked 2010-06-21T13:10:45.340
9

I am planning to publish my site soon on Dreamhost using passenger WSGI as mentioned in the dreamhost setup documentation.

My issue is that I am wanting www.mydomain.com to go directly to my new application, instead of needing to go to web2py.mydomain.com/MyApp/Default.

What is the best way to solve this issue? Do I use DNS redirects or can this be done through the web2py configuration?

Edit
Report

1 Answer

5

You can in web2py. You have two options: 1) call your app "init"

2) use routes to do the mapping. Create a file web2py/routes.py and in it add

routes_in=[('/','/MyApp/default/index')]
answered 2010-07-09T13:23:30.677

Your Answer