using routes.py, something like
routes_in = (
('/web2py/$anything', '/$anything'),
)
routes_out = [(x, y) for (y, x) in routes_in]
should suffice
I prefer being more conservative and allow only "proper" app names....
given you'd like to publish the app named "myapp", it would be
routes_in = (
('/web2py/myapp/$anything', '/myapp/$anything'),
)
routes_out = [(x, y) for (y, x) in routes_in]
On Wednesday, April 1, 2015 at 6:02:22 PM UTC+2, Kurt Stieger wrote:
>
> Hi,
>
> I have installed web2py on a webserver with a other webapplication on it.
>
> Is it possible that web2py lives in a subdirectory.
>
> As example the legacy web application hat the url:
> http://www.my-fancy-server.com
> The web2py application should be reachable for evaluation on:
> http://www.my-fancy-server.com/web2py/<app/contr/func/...>
>
> I know how to gonfigure the webserver, but what and how must I configure
> in web2py?
>
>
> Many thanks,
>
> Kurt
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.