Advertisement
Guest User

Untitled

a guest
Sep 30th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. LoadModule wsgi_module modules/mod_wsgi.so
  2.  
  3. <VirtualHost *:80>
  4. WSGIDaemonProcess mart.localhost user=mart group=users processes=2 threads=25
  5. WSGIProcessGroup mart.localhost
  6. LogLevel debug
  7.  
  8. Alias /media /home/mart/programmation/python/django/martfiles/media/
  9. <Directory /home/mart/programmation/python/django/martfiles/>
  10. Order allow,deny
  11. Allow from all
  12. </Directory>
  13.  
  14. WSGIScriptAlias / /srv/http/wsgi-scripts/django.wsgi
  15. </VirtualHost>
  16.  
  17. <html> <head>
  18. <link rel="stylesheet" href="/media/css/style.css" />
  19.  
  20. [Sat Jan 16 13:22:21 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /media/css/style.css denied, referer: http://localhost/
  21. [Sat Jan 16 13:22:21 2010] [info] mod_wsgi (pid=14783): Attach interpreter ''
  22.  
  23. WSGIScriptAlias / /srv/http/wsgi-scripts/django.wsgi
  24.  
  25. <Directory /home/mart/programmation/python/django/martfiles/>
  26.  
  27. <Directory /srv/http/wsgi-scripts/>
  28. Order allow,deny
  29. Allow from all
  30. </Directory>
  31.  
  32. <VirtualHost *:80>
  33. # Admin email, Server Name (domain name) and any aliases
  34. ServerAdmin testing@example.de
  35. ServerName www.example.de
  36.  
  37. DocumentRoot /home/example/testing/parts/public
  38.  
  39. Alias /media /home/example/testing/parts/public/media
  40.  
  41. # WSGI Settings
  42. WSGIDaemonProcess example user=example group=example threads=25
  43. WSGIProcessGroup example
  44. WSGIScriptAlias / /home/example/testing/parts/public/django.wsgi
  45.  
  46. <Directory "/home/example/testing/parts/public">
  47. # Allow Apache to follow links
  48. Options FollowSymLinks
  49. # Turn on the ability to use .htaccess files
  50. AllowOverride All
  51. # Controls who can get stuff from this directory
  52. Order allow,deny
  53. Allow from all
  54. </Directory>
  55. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement