Web site meant to accompany a virtual machine setup specific to ProjPad.

devel 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <VirtualHost *:80>
  2. #######################################################
  3. # General Information
  4. #######################################################
  5. ServerAdmin bmallred@travisassoc.com
  6. UseCanonicalName Off
  7. DocumentRoot /var/www
  8. <Directory />
  9. WSGIApplicationGroup %{GLOBAL}
  10. Options FollowSymLinks
  11. AllowOverride None
  12. </Directory>
  13. #######################################################
  14. # Trac
  15. #######################################################
  16. Alias /trac /var/lib/trac/
  17. <Directory /var/lib/trac/>
  18. Options Indexes FollowSymLinks MultiViews
  19. AllowOverride None
  20. Order allow,deny
  21. allow from all
  22. SetHandler mod_python
  23. PythonHandler trac.web.modpython_frontend
  24. PythonOption TracEnvParentDir /var/lib/trac
  25. PythonOption TracEnvIndexTemplate /var/www/trac/projects.html
  26. PythonOption TracUriRoot /trac/
  27. </Directory>
  28. <LocationMatch "/[^/]+/login">
  29. AuthType Basic
  30. AuthName "trac"
  31. # Authenticate with HTPASSWD
  32. AuthUserFile /var/lib/trac/.htpasswd
  33. # Authenticate wth LDAP
  34. #AuthBasicProvider ldap
  35. #AuthLDAPBindDN ""
  36. #AuthLDAPBindPassword "********"
  37. #AuthLDAPURL "ldap://127.0.0.1/"
  38. # Use LDAP group
  39. #Require ldap-group ""
  40. #Satisfy any
  41. # Use any valid user
  42. Require valid-user
  43. </LocationMatch>
  44. #######################################################
  45. # Mercurial
  46. #######################################################
  47. <Directory /var/lib/hg>
  48. DirectoryIndex index.html
  49. Options Indexes FollowSymLinks MultiViews
  50. AllowOverride All
  51. Order allow,deny
  52. Allow from all
  53. </Directory>
  54. #######################################################
  55. # Script Handling
  56. #######################################################
  57. WSGIScriptAliasMatch ^/hg(.*) /usr/lib/cgi-bin/hgweb.wsgi$1
  58. WSGIScriptAlias /trac /usr/lib/python2.6/dist-packages/trac/admin/templates/deploy_trac.wsgi
  59. WSGIDaemonProcess wsgitrac user=www-data group=www-data processes=5 threads=10 maximum-requests=1000 umask=0007
  60. WSGIProcessGroup wsgitrac
  61. ScriptAliasMatch ^/([a-zA-Z0-9]+)/cgi-bin/(.+) /usr/lib/cgi-bin/
  62. <Directory /usr/lib/cgi-bin/>
  63. AddHandler wsgi-script .wsgi
  64. Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
  65. AllowOverride None
  66. Order allow,deny
  67. Allow from all
  68. </Directory>
  69. #######################################################
  70. # Error Logs
  71. #######################################################
  72. LogLevel warn
  73. ErrorLog /var/log/apache2/error-sites.log
  74. CustomLog /var/log/apache2/access-sites.log combined
  75. CustomLog /var/log/apache2/ssl-access.log combined
  76. </VirtualHost>