Here is my working apache2 conf for project "proj" on site
mydomain.com.
It is running happily on Ubuntu 12.04 with permissions on all
/var/www/proj directories and files rwxrwx---
This is because I need users in the group to have access but no-one from
outside. Apache is the owner.
Good luck
Mike
# proj #########################################################
<VirtualHost *:80>
# proj resolves to lenny 109
DocumentRoot /var/www/proj/htdocs/
ServerName
proj.mydomain.com
ServerAdmin
webm...@mydomain.com
HostnameLookups Off
UseCanonicalName Off
ErrorLog ${APACHE_LOG_DIR}/proj-error.log
CustomLog ${APACHE_LOG_DIR}/proj-access.log combined
Alias /robots.txt /var/www/static/proj/robots/robots.txt
Alias /favicon.ico /var/www/static/proj/img/proj.ico
# lock the public out
<Directory /var/www/proj/>
AllowOverride None
Order deny,allow
Deny from all
</Directory>
# serve uploaded media from here
<Directory /var/www/media/proj/>
AllowOverride None
Order deny,allow
Allow from all
</Directory>
# serve static stuff from here
<Directory /var/www/static/proj/>
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<IfModule mod_alias.c>
Alias /media/ /var/www/media/proj/
Alias /static/ /var/www/static/proj/
Alias /tiny_mce/ /var/www/static/proj/js/tiny_mce/
Alias /jquery/ /var/www/static/proj/js/jquery/
</IfModule>
<IfModule mod_wsgi.c>
WSGIScriptAlias / /var/www/proj/proj/proj.wsgi
<Directory /var/www/proj/proj/>
Order deny,allow
Allow from all
</Directory>
</IfModule>
</VirtualHost>