All pastes #566348 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-14 12:30 UTC
rendered paste body
NameVirtualHost *:80
<VirtualHost *:80>
	ServerAdmin johnsoncls@gmail.com
	ServerName djangoproject.web
	ServerAlias www.djangoproject.web
	DocumentRoot /var/www/djangoproject/
#
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>

	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#		RedirectMatch ^/$ /apache2-default/
	</Directory>


    Alias /media/ "/usr/lib/python2.4/site-packages/django/contrib/admin/media/"
    Alias /smedia/ "/home/johnson/helpline/media/"
    Alias /sitemedia/ "/home/johnson/helpline/helpline/sitemedia/"

   <Directory /home/johnson/helpline/helpline/sitemedia/>
      Order deny,allow
      Allow from all
    </Directory>

    <Directory /home/johnson/helpline/helpline/templates/>
      Order deny,allow
      Allow from all
    </Directory>

    <Location "/web/">
      SetHandler mod_python
      PythonHandler django.core.handlers.modpython
      SetEnv DJANGO_SETTINGS_MODULE helpline.settings
      PythonPath "['/home/johnson/helpline/helpline'] + sys.path"
      PythonInterpreter helpline
      PythonDebug On
    </Location>
</VirtualHost>