('/(.*)', '/myapp/$1'),
This is not a valid Python regular expression. You are mixing here the
RE syntax with the simplified web2py tags.
Correct RE would be: (/(.*), r/myapp/\1)
Correct web2py tags: (/$tag, /myapp/$tag)
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:(.*) /',
worked, thank you!
need something like this
routes_in = (
('(.*):https?://(.*)site1\.com:(.*)/(.*)', '/site1/$4),
('(.*):https?://(.*)site2\.com:(.*)/(.*)', '/site2/$4'),
)
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
On Apr 25, 2010, at 8:51 AM, Vasile Ermicioi wrote:
worked, thank you!
need something like this
routes_in = (
('(.*):https?://(.*)site1\.com:(.*)/(.*)', '/site1/$4),
('(.*):https?://(.*)site2\.com:(.*)/(.*)', '/site2/$4'),
)
At the very least, you might want something like this:
4 matches
Mail list logo