This is described here
http://web2py.com/book/default/section/4/15
The full syntax is
[remote address]:[protocol]://[host]:[method] [path]
so you want something like this:

routes_in = (
   ('(.*):https?://(.*)site1\.com:(.*) /', '/site1/default/index'),
   ('(.*):https?://(.*)site2\.com:(.*) /', '/site2/default/index'),
)

On Apr 25, 1:33 am, elffikk <elff...@gmail.com> wrote:
> hi,
> I want to serve multiple websites (absolutely different domains) using
> the same web2py instance
>
> I am getting always an 'Invalid request' message
>
> routes.py is something like that
>
> routes_in = (
>   ('^.*site1\.com.*/(.*)', '/site1/$1'),
>   ('^.*site2\.com.*/(.*)', '/site2/$1'),
> )
>
> I read this 
> posthttp://groups.google.com/group/web2py/browse_thread/thread/4768cc04ad...
> and I thought that will work
>
> Any thoughts?

Reply via email to