Created
August 28, 2012 22:27
-
-
Save lesthack/3504909 to your computer and use it in GitHub Desktop.
VirtualHost Django
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 django.localhost.com | |
ServerAdmin [email protected] | |
<Location "/"> | |
SetHandler python-program | |
PythonHandler django.core.handlers.modpython | |
SetEnv DJANGO_SETTINGS_MODULE preventa.settings | |
PythonDebug On | |
PythonPath "['/home/lesthack/public_html/django', '/home/lesthack/public_html/django/preventa'] + sys.path" | |
</Location> | |
Alias /media/ "/home/lesthack/public_html/django/preventa/media/" | |
<Location "/media/"> | |
SetHandler None | |
</Location> | |
Alias /static/ "/home/lesthack/public_html/django/preventa/static/" | |
<Location "/static/"> | |
SetHandler None | |
</Location> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment