well, there is a simpler thing:

if you go to http://myserver/

web2py tries - in order - to start an app called "init";  if it doesn't
exist, it looks for an app called "welcome".

The first level, most simple solution is to just call your app "init".

You can use routes, then, for less trivial things.

Hope that helps.

- Yarko

On Wed, Jul 1, 2009 at 10:16 PM, mr.freeze <[email protected]> wrote:

>
> Thank you ceej.  This will be for a single app install.  I found this
> in the manual just now (I swear I looked before posting!):
> routes_in=(
> ('/(?P<any>.*)','/init/\g<any>'),
> )
> routes_out=(
> ('/init/(?P<any>.*)','/\g<any>'),
> )
>
> It seems to be working as advertised.
> Any drawbacks compared to your method?
>
> On Jul 1, 9:56 pm, ceej <[email protected]> wrote:
> > in your routes.py file, just add to routes.example.py and rename to
> > routes.py.
> >
> > On Jul 1, 9:51 pm, "mr.freeze" <[email protected]> wrote:
> >
> > > Can I use routes.py to make my application run from:http://myserver
> > > instead of:http://myserver/myapp
> >
> > > If not, can it be done another way?  My domain name and app are the
> > > same name so it ends up looking weird:
> http://myweb2pyapp.com/myweb2pyapp(fakenames<http://myweb2pyapp.com/myweb2pyapp%28fakenames>but
>  hopefully you get
> > > the idea)
> >
> > > Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to