All pastes #483992 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-12 00:06 UTC
rendered paste body
<VirtualHost *>
    ServerAdmin webmaster@www.foo.com
    ServerName www.foo.com
    ErrorLog /var/log/apache/www.foo.com-error.log
    CustomLog /var/log/apache/www.foo.com-access.log common


    DocumentRoot /home/foo_project/static

    <LocationMatch (^/$|/foo/|/admin/|/memberlogin|/peoplemap|/dashboard|/site_\media/|/site_media/css/|/site_media/javascript|/edit_photos|/add_photo|/upload_\photo)>
        SetHandler mod_python
        PythonHandler django.core.handlers.modpython
        PythonPath "[r'/home/foo_project'] + sys.path"
        SetEnv DJANGO_SETTINGS_MODULE foo.settings
        PythonDebug On
    </LocationMatch>

    Alias /site_media/ /home/foo_project/static

    <Directory /home/foo_project/static/>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
    </Directory>

    #Alias /site_media/ DocumentRoot

</VirtualHost>

<VirtualHost *>
    ServerName foo.com
    Redirect permanent / http://www.foo.com/
</VirtualHost>