I renamed my app folder to init and it worked. But there has to be another way so that if i create multiple application i can have them point to them so for example in my windows host file I will have the following
host file 127.0.0.1 www.domain1.com 127.0.0.1 www.domain2.com 127.0.0.1 www.domain3.com 127.0.0.1 www.domain4.com The in web2py lets say i have the following applications domain1 domain2 domain3 domain4 i need a example on how to use routes.py so that this can work On Feb 13, 2:04 pm, stargate <kyoukh...@gmail.com> wrote: > I creating a routes.py with the following > > routes_in=( > ('mydomain.com','/mydomain/default/index'), > ) > routes_out=( > ('mydomain.com','/mydomain'), > ) > > so when i type mydomain.com it should point to that directory that has > that application installed > > On Feb 13, 10:44 am, Bruno Rocha <rochacbr...@gmail.com> wrote: > > > I use autoroutes in routes.py > > > You need routes.confhttp://snipt.net/rochacbruno/routesconf/ > > > In the above file replace with your domain and your app. > > 127.0.01.1 /yourapp/default > > yourdomain.com /yourapp/default > > > <http://snipt.net/rochacbruno/routesconf/>and > > routes.pyhttp://snipt.net/rochacbruno/routespy/ > > > with the example above you get rid of the app name, so > > yourapp.com/indexwill call yourapp,com/default/index > > > if you just need to your app to be the default, you can simply rename the > > app folder to "init" > > <http://snipt.net/rochacbruno/routespy/> > > -- > > Bruno Rochahttp://about.me/rochacbruno/bio > > > 2011/2/13 stargate <kyoukh...@gmail.com> > > > > I was wondering how do I configure routes.py so that my application > > > myapp works like this > > > > when i typewww.myapp.comitwill go to that web2py application. I > > > know in windows i can edit the host file in windows but I want it to > > > go directly to my application. All of my paths are absolute paths > >