Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WSGIPythonPath /path/to/django/projects/app
- <VirtualHost *:80>
- DocumentRoot /path/to/django/projects/app
- ServerName subdomain.example.com
- WSGIScriptAlias / /path/to/django/projects/app/<subdir>/wsgi.py
- ErrorLog /var/log/httpd/app-error_log
- CustomLog /var/log/httpd/app-access_log common
- Alias /robots.txt /path/to/django/projects/app/static/robots.txt
- Alias /favicon.ico /path/to/django/projects/app/static/favicon.ico
- AliasMatch ^/([^/]*.css) /path/to/django/projects/app/static/css/
- AliasMatch ^/([^/]*.js) /path/to/django/projects/app/static/js/
- AliasMatch ^/([^/]*.png) /path/to/django/projects/app/static/images/
- AliasMatch ^/([^/]*.swf) /path/to/django/projects/app/static/swf/
- Alias /media/ /path/to/django/projects/app/media/
- Alias /static/ /path/to/django/projects/app/<subdir>/sitestatic/
- <Directory /path/to/django/projects/app/static>
- Order deny,allow
- Allow from all
- </Directory>
- <Directory /path/to/django/projects/app/media>
- Order deny,allow
- Allow from all
- </Directory>
- <Directory /path/to/django/projects/app/<subdir>/>
- <Files wsgi.py>
- Order deny,allow
- Allow from all
- </Files>
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement