# Example apache2 configuration file
# Sets up Ghestalt on http://localhost:8080 .
# Ghestalt sources assumed in /home/dan/django .
# Django sources assumed in /usr/lib/python2.4/site-packages/django .
# This should be changed to where you have Ghestalt, Django sources.
# 
# Include this configuration file from the apache2
# main configuration file.
# I just put it in /etc/apache2/sites-available and 
# added a proper link in /etc/apache2/sites-enabled.
# 
# Apache2 doesn't like NameVirtualHost to be sliced up later
# by port number. So be sure to enable NameVirtualHost to each
# port you use it on specifically. I used the following line
# for port 80 and have Ghestalt installed on port 8080
#
# NameVirtualHost *:80
#

Listen 8080
<VirtualHost *:8080>
	<Location "/">
		SetHandler python-program
		PythonPath "['/home/dan/django'] + sys.path"
		PythonHandler django.core.handlers.modpython
		SetEnv DJANGO_SETTINGS_MODULE ghestalt.settings
		PythonDebug On
	</Location>
	Alias /site_media "/home/dan/django/ghestalt/static"
	<Location "/site_media"> 
		SetHandler None
	</Location>
	Alias /admin_media "/usr/lib/python2.4/site-packages/django/contrib/admin/media"
	<Location "/admin_media"> 
		SetHandler None
	</Location>
</VirtualHost>
