Enabling SSL for Trac and SVNSubmitted by ismangil on Mon, 01/21/2008 - 5:41pm.The admin site uses SSL, very good. Can I enable SSL for Trac and SVN itself? |
Search |
Enabling SSL for Trac and SVNSubmitted by ismangil on Mon, 01/21/2008 - 5:41pm.The admin site uses SSL, very good. Can I enable SSL for Trac and SVN itself? |
Search |
I got SSL working for SVN
I got SSL working for SVN (over Webdav) too.
Here's how I did it:
Here's what I changed my NameVirtualHost *:443 section to:
... NameVirtualHost *:443 <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem #RewriteEngine On #RewriteRule ^/(.*) http://%{SERVER_ADDR}/$1 [L,R] <Location /svn/project> DAV svn SVNPath /var/data/projects/svn/project AuthType Basic AuthName "My awesome Subversion repository" AuthUserFile /var/data/projects/trac.passwd Require valid-user </Location> </VirtualHost> ...Couple of things to note:
#RewriteEngine On #RewriteRule ^/(.*) http://%{SERVER_ADDR}/$1 [L,R]Hope that helps!
-Marc
Enabling SSL for Trac and SVN
Sure, assuming you have registered your JumpBox you can enable shell access then modify the apache config:
replace the two lines that say:
RewriteEngine On RewriteRule ^/(.*) http://%{SERVER_ADDR}/$1 [L,R]with:
There a several ways this can be accomplished, this is just one and may not be the best for your situation. You may also want to redirect your port 80 traffic to the SSL port. Also, upcoming versions are likely to have the ability to enable this in the admin interface.
Austin