kazzle101

mod_wsgi apache configuration

Jun 20th, 2012
13,554
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3.  
  4. #WSGIDaemonProcess pywsgi:80 processes=2 threads=15 display-name=%{GROUP}
  5. #WSGIProcessGroup pywsgi:80
  6. #WSGIScriptAlias /wsgi/ /var/www/
  7.  
  8. DocumentRoot /var/www
  9. <Directory />
  10. Options FollowSymLinks
  11. AllowOverride None
  12. </Directory>
  13. <Directory /var/www/>
  14. Options Indexes FollowSymLinks MultiViews ExecCGI
  15. AllowOverride None
  16. Order allow,deny
  17. allow from all
  18.  
  19. WSGIScriptReloading On
  20. Addhandler wsgi-script .py
  21. </Directory>
  22.  
  23. TypesConfig /etc/apache2/mime.types
  24. DirectoryIndex index.php index.htm index.html index.py
  25. AccessFileName .htaccess
  26.  
  27. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  28. <Directory "/usr/lib/cgi-bin">
  29. AllowOverride None
  30. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  31. Order allow,deny
  32. Allow from all
  33. </Directory>
  34.  
  35. ErrorLog ${APACHE_LOG_DIR}/error.log
  36.  
  37. # Possible values include: debug, info, notice, warn, error, crit,
  38. # alert, emerg.
  39. LogLevel warn
  40.  
  41. CustomLog ${APACHE_LOG_DIR}/access.log combined
  42. </VirtualHost>
RAW Paste Data