123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <IfModule mod_ssl.c>
- <VirtualHost _default_:443>
-
-
-
- ServerAdmin bmallred@travisassoc.com
- UseCanonicalName Off
- DocumentRoot /var/www
- <Directory />
- WSGIApplicationGroup %{GLOBAL}
- Options FollowSymLinks
- AllowOverride None
- </Directory>
-
-
-
- Alias /trac /var/lib/trac/
- <Directory /var/lib/trac/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride None
- Order allow,deny
- allow from all
- SetHandler mod_python
- PythonHandler trac.web.modpython_frontend
- PythonOption TracEnvParentDir /var/lib/trac
- PythonOption TracEnvIndexTemplate /var/www/trac/projects.html
- PythonOption TracUriRoot /trac/
- </Directory>
- <LocationMatch "/[^/]+/login">
- AuthType Basic
- AuthName "trac"
-
- AuthUserFile /var/lib/trac/.htpasswd
-
-
-
-
-
-
-
-
-
- Require valid-user
- </LocationMatch>
-
-
-
- <Directory /var/lib/hg>
- DirectoryIndex index.html
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- Allow from all
- <LimitExcept GET>
- Require valid-user
- </LimitExcept>
- </Directory>
- <LocationMatch "^/hg(.*)">
- AuthType Basic
- AuthName "trac"
-
- AuthUserFile /var/lib/trac/.htpasswd
-
-
-
-
-
-
-
-
-
- Require valid-user
- </LocationMatch>
-
-
-
- WSGIScriptAliasMatch ^/hg(.*) /usr/lib/cgi-bin/hgweb.wsgi$1
- WSGIScriptAlias /trac /usr/lib/python2.6/dist-packages/trac/admin/templates/deploy_trac.wsgi
- WSGIDaemonProcess wsgitrac-ssl user=www-data group=www-data processes=5 threads=10 maximum-requests=1000 umask=0007
- WSGIProcessGroup wsgitrac-ssl
- ScriptAliasMatch ^/([a-zA-Z0-9]+)/cgi-bin/(.+) /usr/lib/cgi-bin/
- <Directory /usr/lib/cgi-bin/>
- AddHandler wsgi-script .wsgi
- Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
-
-
-
- LogLevel warn
- ErrorLog /var/log/apache2/error-sites.log
- CustomLog /var/log/apache2/access-sites.log combined
- CustomLog /var/log/apache2/ssl-access.log combined
-
-
-
- SSLEngine on
- SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
- SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
- <FilesMatch "\.(cgi|shtml|phtml|php)$">
- SSLOptions +StdEnvVars
- </FilesMatch>
- <Directory /usr/lib/cgi-bin>
- SSLOptions +StdEnvVars
- </Directory>
- BrowserMatch "MSIE [2-6]" \
- nokeepalive ssl-unclean-shutdown \
- downgrade-1.0 force-response-1.0
-
- BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
- </VirtualHost>
- </IfModule>
|