On Jun 13, 9:51 am, annet <[email protected]> wrote:
> Hi Vasile,
>
> > please take a look if that is what you 
> > needhttp://groups.google.com/group/web2py/browse_thread/thread/fac136d7e1...
>
> Thanks for pointing me in the right direction. I'll give it a try and
> let you know if it works.
>
> > - webfaction application is a different thing than a web2py application
>
> I know, I installed web2py using their custom install script and named
> the application customweb2py. The web2py applications are located in
> customweb2py/web2py/applications/
>
> Do you know whether there is a limit to the number of applications you
> can have within web2py and routes.py.

Annet -

It might be useful for you to draw a diagram.   You are talking about
two instances of web2py server;
Each server can have many applications;

>From webfaction's perspective - web2py is an "application";

from web2py's perspective - "welcome" is an application;

If you draw a map of client request => dsn-lookup => your apache
instance => wsgi => web2py => application

you can start to see where things happen more clearly.

For example:   your client wants to have _their_  xxx.com  redirect
you annet.com/something/default/index:
Where in your map can this be done?   One is to have xxx.com  (someone
elses server) redirect (that then becomes a new request, i.e. a new
address+parameters set);
Another is to have two dns entries point to the same apache instance -
for example, from panel.webfaction.com,  menu:  Domains/websites >>
Websites, you can set more than one domain to point to your single
web2py installation (  Domain/websites >> Applications) --- ie. you
can have this.foo.com  and www.bar.com both point to (for example)
customweb2py: /my_web2py_app   --- this represents webfaction setting
up (in essence) your apache instance for you (through the panel).

As you start to ask the questions of "what comes in at this point?"
and "what can be done at this level", you will start seeing more
clearly what your possibilities are, and then can start asking
yourself what the various tradeoffs are for redirections etc. at
various points in your map.   There are various tools, command line
and network monitoring that you can get into if you want to see more
details of what is going back and forth, but start by making some
model for yourself of what the path is from that web browser to your
controller.

I hope this is helpful.

Regards,
- Yarko


>
> According to webfaction's support people you cannot install only one
> web2py application in an account, when I install a second web2py
> called secondweb2py, how do customweb2py and secondweb2py know about
> each others existence?
>
> Kind regards,
>
> Annet.

Reply via email to