Thanks for your tips. I'm out of office in these days so I cannot test it now. I was just thinking to the solution suggested by tom. I will try it because I will have to serve various applications. I will need to remove the w2p prefix too to obtain (e.g.): http://server2/cpa4 and http://server/master instead of http://server2/w2p/cpa4 and http://server/w2p/master.
I will let you know if I get to the point ;) giovanni On 9 Feb, 18:22, Wikus van de Merwe <dupakrop...@googlemail.com> wrote: > If you have just one application all you need to do is set the web2py WSGI > script alias and serve files from the web2py folder excluding admin parts. > > WSGIDaemonProcess web2py display-name=%{GROUP} > WSGIProcessGroup web2py > WSGIScriptAlias /prefix /var/www/web2py/wsgihandler.py > > <Directory /var/www/web2py> > Options +FollowSymLinks > AllowOverride None > Order Allow,Deny > Deny from all > <Files wsgihandler.py> > Allow from all > </Files> > </Directory> > > AliasMatch ^/prefix/([^/]+)/static/(.*) > /var/www/web2py/applications/$1/static/$2 > > <Directory /var/www/web2py/applications/*/static/> > Order Allow,Deny > Allow from all > </Directory> > > <LocationMatch ^/prefix/([^/]+)/appadmin> > Deny from all > </LocationMatch> > > <LocationMatch ^/prefix/admin> > Deny from all > </LocationMatch> > </VirtualHost> > > Then set path prefix and the default application in your web2py/routes.py > file: > > routers = dict( > # base router > BASE = dict( > default_application = "app", > path_prefix = "prefix", > ), > ) > > As a result you will get "domain/prefix" pointing to the default > application "app".