...and yes, restarted. On Monday, February 11, 2013 9:48:59 PM UTC-6, Jim S wrote: > > Sorry for being slow at this, route configuration is certainly not a forte > of mine. Is there something special I need to do to turn on logging? How > would I examine request.env? I'm running all of this from pythonanywhere > and don't really know where to find these things. > > -Jim > > On Mon, Feb 11, 2013 at 9:06 > >> Jonathan >> >> I am currently using that as my base for getting this working. Here is >> what I have so far: >> >> routers = dict( >> # base router >> BASE=dict(domains = {"www.website1.com":"mustangs", >> "www.website2.com":"icysa", })) >> >> But, anytime I to either URL, I get the web2py welcome app. >> >> Also, I've saved the file as routes.py. >> >> >> And restarted, right? >> >> Try turning on logging for routes and see what you get. You might also >> examine request.env, and make sure that the target domain is showing up >> properly. >> >> >> -Jim >> >> On Monday, February 11, 2013 6:32:41 PM UTC-6, Jonathan Lundell wrote: >>> >>> On 11 Feb 2013, at 3:36 PM, Jim S <j...@qlf.com> wrote: >>> >>> I'm trying to route traffic that comes in on a specific URL to a specifc >>> app. >>> >>> Example: >>> >>> www.host1.com should route to the welcome app >>> >>> www.host2.com should route to mySpecific app >>> >>> I realize this is probably trivial, but I'm really struggling with it. >>> Hoping to do it with routes.py and not through wsgi stuff. Please feel >>> free to set me straight if that is not advisable. >>> >>> >>> Look at the domain-routing provision in the parametric router. >>> Documentation in the book, and in router.example.py. >>> >> >> -- >> >> >> >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >
-- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.