Skip to content

Instantly share code, notes, and snippets.

@fra3il
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fra3il/ac4cecd629cc8eb118fc to your computer and use it in GitHub Desktop.
Save fra3il/ac4cecd629cc8eb118fc to your computer and use it in GitHub Desktop.
[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