Hello All, I am posting a quick fix for those who want a simple and fast way to host multiple domains using apache on a single web2py installation. It took me a while to figure out, so if it can be a time saver to some....
1) Install Web2py, Apache2 with mod_proxy (a2enmod proxy...) 2) Ensure its working fine on say www.example.com 2) Add the following in the default virtualhost config (for apache2 : / etc/apache2/site-available/default), or create a new one for every website (example1.com, example2.com) <VirtualHost *:80> ServerName www.example1.com ServerAlias example1.com ProxyRequests Off ProxyPass /example1 http://example.com/example1 ProxyPass /T3 http://example.com/T3 ProxyPass / http://example.com/example1 ProxyPassReverse / http://vihang.com/example1 </VirtualHost> this has the benefit that only example.com can visit all apps(restrict entry to that).. example1.com and all other sites can only use its own app. Also, for some you may need to make changes in the proxy.conf to allow example1 or all websites (depending on your security needs). Happy web2py'ing Vihang --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

