Example domain: www.example.com Example Turbogears URL: http://www.example.com/webapp/ Turbogears working on port 8080 Example Configuration File: prod.cfg
Debian: Install: sudo apt-get install apache2 sudo apt-get install libapache2-mod-proxy-html Enable modules: a2enmod proxy a2enmod proxy_http Configure apache: In /etc/apache2/conf.d/webapp Inside add these lines: ProxyPreserveHost on <Proxy *> Order allow,deny Allow from all </Proxy> ProxyPass /webapp/ http://127.0.0.1:8080/webapp/ ProxyPassReverse /webapp/ http://127.0.0.1:8080/webapp/ ProxyPass /static/ http://127.0.0.1:8080/static/ ProxyPassReverse /static/ http://127.0.0.1:8080/static/ Then: /etc/init.d/apache2 force-reload In prod.cfg add server.socket_port=8080 and uncomment base_url_filter.on = True base_url_filter.use_x_forwarded_host = True I didn't try this yet. > # Adjust these lines and uncomment to restart the server if it > isn't > # already running > # ErrorDocument 503 /cgi-bin/autostart.py > # ErrorDocument 502 /cgi-bin/autostart.py What about a server log? How can I tell it to use /var/log/apache2/webapp.log How can I tell it to rotate the same way apache does it? -- TurboGears from start to finish: http://www.lucasmanual.com/mywiki/TurboGears --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

