Re: [web2py] Re: Serve different applications to different URLS

2010-10-16 Thread Albert Abril
Hi Tyler. Did you tested that method? or maybe found another solution? On Fri, Oct 1, 2010 at 1:09 AM, Tyler Laing wrote: > Hmm, not sure how that would work on Webfaction. I'll submit a ticket > about this, thanks! > > On Sep 30, 2:35 pm, Bruno Rocha wrote: > > $ cd /etc/apache2/sites-enable

[web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Tyler Laing
Hmm, not sure how that would work on Webfaction. I'll submit a ticket about this, thanks! On Sep 30, 2:35 pm, Bruno Rocha wrote: > $ cd /etc/apache2/sites-enabled > $ > yourApp > > then > > >   ServerNamewww.yourAppDomain.com >   RewriteEngine on >   RewriteRule ^/(.*) >  http://anyhost:anyport/

Re: [web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Bruno Rocha
$ cd /etc/apache2/sites-enabled $ > yourApp then ServerName www.yourAppDomain.com RewriteEngine on RewriteRule ^/(.*) http://anyhost:anyport/yourSiteBase/http/anyhost:anyport/YourSiteBase/YourAppBase/$1 [L,P] If you create separate config for each VirtualHost domain, you can do that

Re: [web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Bruno Rocha
If you are using Apache, you can create rules on apache default configuration. to redirect based on domain. 2010/9/30 Albert Abril > I'm seeing about this problem too. > I have a web2py install at webfaction. > And three different domains. > > I have only one web2py installation, and I wish tha

Re: [web2py] Re: Serve different applications to different URLS

2010-09-30 Thread Albert Abril
I'm seeing about this problem too. I have a web2py install at webfaction. And three different domains. I have only one web2py installation, and I wish that depending on the url, serve an app or other. (because If I have two instances of web2py, it exceeds the memory of my hosting plan). I will tr

[web2py] Re: Serve different applications to different URLS

2010-09-30 Thread mdipierro
routes does not support this but you can do things like app=request.env.http_host.split('.')[0] if not app=request.application: redirect(...) On Sep 30, 11:57 am, Tyler Laing wrote: > I have two URLs, novelite.ca and noverotic.ca and I'm trying to figure > out how to make web2py serve a differen