Skip to content

Instantly share code, notes, and snippets.

@fra3il fra3il/1288250160.conf
Last active Aug 29, 2015

Embed
What would you like to do?
[Blog] httpd.conf
<VirtualHost *:80>
ServerName IP_ADDRESS
DocumentRoot /Users/USER_NAME/Documents/workspace/PROJECT/src/PROJECT
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE PROJECT.settings
PythonDebug On
PythonPath "['/usr/lib/python2.6','/Users/USER_NAME/Documents/workspace/PROJECT/src'] + sys.path"
PythonInterpreter PROJECT
</Location>
<Location "/media">
SetHandler None
</Location>
<LocationMatch "\.(mp3|jpg|jpge|bmp|gif|png|css|js|swf|html|htm|txt)$">
SetHandler None
</LocationMatch>
<Directory "/Users/USERNAME/Documents/workspace/PROJECT/src/PROJECT" >
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.