Sorry Its not with the nginx script but the apache script ! I want to redirect each subdomains on different web application of we2py :
sub1.domain.com -> welcome app sub2.domain.com -> application2 .... So changing only the default application on routes.py its not the prefered solution On 1 mai, 19:32, pbreit <pbreitenb...@gmail.com> wrote: > The Nginx web server has it's own way to configure routing. Have a look > at:http://nginx.org/en/docs/http/server_names.html > > You might be able to get what you want simply by setting a > default_application in routes.py: > 1. in "web2py" directory, open "router.example.py" > 2. modify "default_application = 'welcome'," to "default_application = > 'myapp'," > 3. save as "routes.py" > 4. restart web2py