Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. WSGIPythonPath /path/to/django/projects/app
  2. <VirtualHost *:80>
  3. DocumentRoot /path/to/django/projects/app
  4. ServerName subdomain.example.com
  5. WSGIScriptAlias / /path/to/django/projects/app/<subdir>/wsgi.py
  6. ErrorLog /var/log/httpd/app-error_log
  7. CustomLog /var/log/httpd/app-access_log common
  8.  
  9. Alias /robots.txt /path/to/django/projects/app/static/robots.txt
  10. Alias /favicon.ico /path/to/django/projects/app/static/favicon.ico
  11. AliasMatch ^/([^/]*.css) /path/to/django/projects/app/static/css/
  12. AliasMatch ^/([^/]*.js) /path/to/django/projects/app/static/js/
  13. AliasMatch ^/([^/]*.png) /path/to/django/projects/app/static/images/
  14. AliasMatch ^/([^/]*.swf) /path/to/django/projects/app/static/swf/
  15.  
  16. Alias /media/ /path/to/django/projects/app/media/
  17. Alias /static/ /path/to/django/projects/app/<subdir>/sitestatic/
  18.  
  19. <Directory /path/to/django/projects/app/static>
  20. Order deny,allow
  21. Allow from all
  22. </Directory>
  23. <Directory /path/to/django/projects/app/media>
  24. Order deny,allow
  25. Allow from all
  26. </Directory>
  27. <Directory /path/to/django/projects/app/<subdir>/>
  28. <Files wsgi.py>
  29. Order deny,allow
  30. Allow from all
  31. </Files>
  32. </Directory>
  33. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement