yes you can do:
routes_in=(
('/admin(?P<stuff>.*)', '/admin\g<stuff>'),
('/login(?P<stuff>.*)', '/myapp/auth/login\g<stuff>'),
('/logout(?P<stuff>.*)', '/myapp/auth/logout\g<stuff>'),
('/register(?P<stuff>.*)', '/myapp/auth/register\g<stuff>'),
('/verify_email(?P<stuff>.*)', '/myapp/auth/verify_email\g<stuff>'),
('/change_password(?P<stuff>.*)', '/myapp/auth/change_password
\g<stuff>'),
('/retrieve_password(?P<stuff>.*)', '/myapp/auth/retrieve_password
\g<stuff>'),
('/myapp/(?P<stuff>.+)', '/myapp/\g<stuff>'),
('/$controller', '/myapp/$controller/index'),
('^.*:/$', '/myapp/main/index'),
('/(?P<stuff>.+)', '/myapp/\g<stuff>'),
)
routes_out=(
('/admin(?P<stuff>.*)', '/admin\g<stuff>'),
('/myapp/auth/login/(?P<stuff>.*)', '/login/\g<stuff>'),
('/myapp/auth/logout/(?P<stuff>.*)', '/logout/\g<stuff>'),
('/myapp/auth/register/(?P<stuff>.*)', '/register/\g<stuff>'),
('/myapp/auth/verify_email/(?P<stuff>.*)', '/verify_email/
\g<stuff>'),
('/myapp/auth/change_password/(?P<stuff>.*)', '/change_password/
\g<stuff>'),
('/myapp/auth/retrieve_password/(?P<stuff>.*)', '/retrieve_password/
\g<stuff>'),
('^/myapp/main/index$','/'),
('/myapp/(?P<stuff>.+)', '/\g<stuff>'),
)
routes_onerror = [
('init/400', '/myapp/error/not_found')
,('init/*', '/myapp/error/fail')
,('*/404', '/myapp/error/not_found')
,('*/*', '/myapp/error/index')
]
error_message = '<html><body><h1>Invalid request</h1></body></html>'
error_message_ticket = '<html><body><h1>Internal error</h1>Ticket
issued: <a href="/admin/default/ticket/%(ticket)s" target="_blank">%
(ticket)s</a></body></html>'
On Jul 1, 9:51 pm, "mr.freeze" <[email protected]> wrote:
> Can I use routes.py to make my application run from:http://myserver
> instead of:http://myserver/myapp
>
> If not, can it be done another way? My domain name and app are the
> same name so it ends up looking weird:http://myweb2pyapp.com/myweb2pyapp(fake
> names but hopefully you get
> the idea)
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---