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 <[email protected]> wrote:
> $ cd /etc/apache2/sites-enabled
> $ > yourApp
>
> then
>
> <VirtualHostwww.yourAppDomain.com>
>   ServerNamewww.yourAppDomain.com
>   RewriteEngine on
>   RewriteRule ^/(.*)
>  http://anyhost:anyport/yourSiteBase/http/anyhost:anyport/YourSiteBase...
> [L,P]
> </VirtualHost>
>
> If you create separate config for each VirtualHost domain, you can do that,
> or better if you create subdomains for each app
>
> 2010/9/30 Bruno Rocha <[email protected]>
>
>
>
> > If you are using Apache, you can create rules on apache default
> > configuration. to redirect based on domain.
>
> > 2010/9/30 Albert Abril <[email protected]>
>
> > 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 try that solution.
> >> Thanks.
>
> >> On Thu, Sep 30, 2010 at 8:14 PM, mdipierro <[email protected]>wrote:
>
> >>> 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 <[email protected]> wrote:
> >>> > I have two URLs, novelite.ca and noverotic.ca and I'm trying to figure
> >>> > out how to make web2py serve a different application depending on the
> >>> > base url.
>
> >>> > Does this involve routes.py?
>
> > --
>
> >http://rochacbruno.com.br
>
> --
>
> http://rochacbruno.com.br

Reply via email to