Last active
August 29, 2015 14:16
-
-
Save fra3il/ac4cecd629cc8eb118fc to your computer and use it in GitHub Desktop.
[Blog] httpd.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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