You can do at the level of the web server. If you are using rocket
only...
create an app called dummy and put the static side under dummy/static

create a routes.py that says:

routes_in = [('.*:http://domain.com:GET /$anything','/dummy/static/
$anything')]

it will map any ($anything) GET request to http://domain.com to /dummy/
static/$anything
Notice that in this case you do not need routes_out because the URL
helper is never used.


On Jan 2, 9:35 pm, Plumo <[email protected]> wrote:
> hello,
>
> I have an existing static website (generated by jekyll):
>
> domain.com
> domain.com/blog
>
> and then I have some web2py apps served under sub-domains:
>
> sales.domain.com
> contact.domain.com
>
> For various reasons I want the web2py apps served alongside the static part
> under sub-directories:
>
> domain.com/sales
> domain.com/contact
>
> How would you suggest achieving this?
> Currently both parts are served by nginx.
>
> Richard

Reply via email to