Got into a clean version but still can't made it work:
routes_in = (('.*:/favicon.ico', '/examples/static/favicon.ico'),
('.*:/robots.txt', '/examples/static/robots.txt'),
-> ('.*:http://casasdocastro.com:POST /(?P<any>.*)','/
casasdocastro/\g<any>'),
)
maybe I should be heading to url writes on the web server...
On Dec 4, 6:13 pm, mdipierro <[email protected]> wrote:
> The proxing should not change the HTTP_HOST in the header.
>
> On Dec 4, 12:09 pm, blackthorne <[email protected]> wrote:
>
>
>
> > Problem with routes is that I can't differenciate the traffic by its
> > source (I think).
> > Then, all other applications powered by web2py wouldn't become
> > acessible
>
> > e.g.:
> > Client (browser) -> HTTPD (nginx) --> Apache (wsgi) -> web2py
> > (wsgihandler) -> my_web2py_application1 (routes)
>
> > all traffic gets redirected to "127.0.0.1:port" when it gets to the
> > Apache (wsgi), so how can routes tell the difference to map into
> > domain names?
>
> > Please, correct me if I am wrong.
> > Thank you, best regards
>
> > On Dec 4, 5:32 pm, mdipierro <[email protected]> wrote:
>
> > > Ideally you would apache to do the rewriting but I am not if
> > > webfaction allows that.
>
> > > You can use routes to map domainnames into apps.
>
> > > See if you can figure out the syntax form the book or I will try come
> > > up with an example.
>
> > > Massimo
>
> > > On Dec 4, 11:27 am, blackthorne <[email protected]> wrote:
>
> > > > I have a apachewsgi webfaction application which is holding a web2py
> > > > that keeps multiple web applications.
> > > > If I map the domainwww.y.orgtoit, I am able to access its web
> > > > applications
> > > > usingwww.y.org/application1,www.y.org/application2,www.y.org/application3.
> > > > Well, you know that...
>
> > > > Now, I got a new domain which is already managed by webfaction and I
> > > > want to map it to one of the web applications powered by that
> > > > apachewsgi application.
>
> > > >www.my_awesome_domain.com--> (Application apachewsgi)/
> > > > my_awesome_web2py_app
>
> > > > This seems simple (and it is) but I'm having a very bad time making
> > > > threw it so I kindly ask for your help because I know there many
> > > > web2py users using webfaction hosting service that probably came to
> > > > this problem before me.
>
> > > > I would gently ask to go into the juicy parts (accurate configuration
> > > > lines) because I've already tried mod_rewrite and mod_proxy but I am
> > > > not sure if I did it right.
>
> > > > Thank you,
> > > > Best Regards
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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.