I got some help with this a week or so ago. I found the manual to be
more confusing than helpful.
http://groups.google.com/group/web2py/browse_thread/thread/f4197ddc6f8f46bc/7be254ed84961d40?lnk=gst&q=ubuntu#7be254ed84961d40
Here is my working config file
note that i had to put my wsgi handlers outside the <VirtualHost> tags
so it would work for both HTTP and HTTPS
WSGIScriptAlias / /var/www/web2py/wsgihandler.py
WSGIDaemonProcess web2py user=web2py group=web2py home=/var/
www/web2py processes=1 maximum-requests=1000
<VirtualHost *:80>
#WSGIScriptAlias / /var/www/web2py/wsgihandler.py
#WSGIDaemonProcess web2py user=web2py group=web2py home=/var/
www/web2py processes=1 maximum-requests=1000
ServerAdmin webmaster@localhost
DocumentRoot /var/www/web2py/applications
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error,
crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin webmaster@localhost
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
DocumentRoot /var/www/web2py/applications/admin
#WSGIScriptAlias / /var/www/web2py/wsgihandler.py
#WSGIDaemonProcess web2py user=web2py group=web2py home=/var/
www/web2py processes=1 maximum-requests=1000
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from
127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>