[Answer]-VirtualHost for django site on dedicated server with multiple web sites

1👍

Try this:

<VirtualHost *:80>
    DocumentRoot /home/user/www/mydjangosite.com
    ServerName mydjangosite
    WSGIScriptAlias / /home/user/www/mydjangosite.com/testing/wsgi.py
    <Directory "/home/user/www/mydjangosite.com/testing">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Instead of:

<VirtualHost *:80>
    DocumentRoot home/user/www/mydjangosite.com
    ServerName mydjangosite
    WSGIScriptAlias / home/user/www/mydjangosite.com/testing/wsgi.py
    <Directory "home/user/www/mydjangosite.com/testing">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Leave a comment