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

devel-ssl 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <IfModule mod_ssl.c>
  2. <VirtualHost _default_:443>
  3. #######################################################
  4. # General Information
  5. #######################################################
  6. ServerAdmin bmallred@travisassoc.com
  7. UseCanonicalName Off
  8. DocumentRoot /var/www
  9. <Directory />
  10. WSGIApplicationGroup %{GLOBAL}
  11. Options FollowSymLinks
  12. AllowOverride None
  13. </Directory>
  14. #######################################################
  15. # Trac
  16. #######################################################
  17. Alias /trac /var/lib/trac/
  18. <Directory /var/lib/trac/>
  19. Options Indexes FollowSymLinks MultiViews
  20. AllowOverride None
  21. Order allow,deny
  22. allow from all
  23. SetHandler mod_python
  24. PythonHandler trac.web.modpython_frontend
  25. PythonOption TracEnvParentDir /var/lib/trac
  26. PythonOption TracEnvIndexTemplate /var/www/trac/projects.html
  27. PythonOption TracUriRoot /trac/
  28. </Directory>
  29. <LocationMatch "/[^/]+/login">
  30. AuthType Basic
  31. AuthName "trac"
  32. # Authenticate with HTPASSWD
  33. AuthUserFile /var/lib/trac/.htpasswd
  34. # Authenticate wth LDAP
  35. #AuthBasicProvider ldap
  36. #AuthLDAPBindDN ""
  37. #AuthLDAPBindPassword "********"
  38. #AuthLDAPURL "ldap://127.0.0.1/"
  39. # Use LDAP group
  40. #Require ldap-group ""
  41. #Satisfy any
  42. # Use any valid user
  43. Require valid-user
  44. </LocationMatch>
  45. #######################################################
  46. # Mercurial
  47. #######################################################
  48. <Directory /var/lib/hg>
  49. DirectoryIndex index.html
  50. Options Indexes FollowSymLinks MultiViews
  51. AllowOverride All
  52. Order allow,deny
  53. Allow from all
  54. <LimitExcept GET>
  55. Require valid-user
  56. </LimitExcept>
  57. </Directory>
  58. <LocationMatch "^/hg(.*)">
  59. AuthType Basic
  60. AuthName "trac"
  61. # Authenticate with HTPASSWD
  62. AuthUserFile /var/lib/trac/.htpasswd
  63. # Authenticate wth LDAP
  64. #AuthBasicProvider ldap
  65. #AuthLDAPBindDN ""
  66. #AuthLDAPBindPassword "********"
  67. #AuthLDAPURL "ldap://127.0.0.1/"
  68. # Use LDAP group
  69. #Require ldap-group ""
  70. #Satisfy any
  71. # Use any valid user
  72. Require valid-user
  73. </LocationMatch>
  74. #######################################################
  75. # Script Handling
  76. #######################################################
  77. WSGIScriptAliasMatch ^/hg(.*) /usr/lib/cgi-bin/hgweb.wsgi$1
  78. WSGIScriptAlias /trac /usr/lib/python2.6/dist-packages/trac/admin/templates/deploy_trac.wsgi
  79. WSGIDaemonProcess wsgitrac-ssl user=www-data group=www-data processes=5 threads=10 maximum-requests=1000 umask=0007
  80. WSGIProcessGroup wsgitrac-ssl
  81. ScriptAliasMatch ^/([a-zA-Z0-9]+)/cgi-bin/(.+) /usr/lib/cgi-bin/
  82. <Directory /usr/lib/cgi-bin/>
  83. AddHandler wsgi-script .wsgi
  84. Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
  85. AllowOverride None
  86. Order allow,deny
  87. Allow from all
  88. </Directory>
  89. #######################################################
  90. # Error Logs
  91. #######################################################
  92. LogLevel warn
  93. ErrorLog /var/log/apache2/error-sites.log
  94. CustomLog /var/log/apache2/access-sites.log combined
  95. CustomLog /var/log/apache2/ssl-access.log combined
  96. #######################################################
  97. # Secure Socket Layer
  98. #######################################################
  99. SSLEngine on
  100. SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
  101. SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
  102. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  103. SSLOptions +StdEnvVars
  104. </FilesMatch>
  105. <Directory /usr/lib/cgi-bin>
  106. SSLOptions +StdEnvVars
  107. </Directory>
  108. BrowserMatch "MSIE [2-6]" \
  109. nokeepalive ssl-unclean-shutdown \
  110. downgrade-1.0 force-response-1.0
  111. # MSIE 7 and newer should be able to use keepalive
  112. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  113. </VirtualHost>
  114. </IfModule>