ServerName web2py.localhost
ServerAdmin youremail@example.com
DocumentRoot /var/www/web2py/
WSGIScriptAlias / /var/www/web2py/wsgihandler.py
WSGIDaemonProcess web2py user=apache group=web2py home=/var/www/web2py/ processes=5 maximum-requests=10000
# static files do not need WSGI
Order Allow,Deny
Allow from all
# everything else goes to web2py via wsgi
Order deny,allow
Allow from all
WSGIProcessGroup web2py
# Log. Can be disabled
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogLevel notice
CustomLog /tmp/web2py.access.log common
ErrorLog /tmp/web2py.error.log
# comment out on ubuntu next 3 lines
ServerName web2py.localhost
ServerAdmin youremail@example.com
DocumentRoot /var/www/web2py/
WSGIScriptAlias / /var/www/web2py/wsgihandler.py
# no need to redefine here the wsgi process daemon, as it's defined above
# static files do not need WSGI
Order Allow,Deny
Allow from all
Order deny,allow
Allow from all
WSGIProcessGroup web2py
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogLevel notice
CustomLog /tmp/web2py.access.ssl.log common
ErrorLog /tmp/web2py.error.ssl.log
# SSL support. Stolen from gentoo configuration
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
# on ubuntu:
# SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
# SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# comment out on ubuntu next 3 lines