# 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 SetHandler python-program PythonPath "['/home/dan/django'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE ghestalt.settings PythonDebug On Alias /site_media "/home/dan/django/ghestalt/static" SetHandler None Alias /admin_media "/usr/lib/python2.4/site-packages/django/contrib/admin/media" SetHandler None