HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   SVN over HTTPS? (http://www.howtoforge.com/forums/showthread.php?t=54368)

Kira 30th September 2011 11:49

SVN over HTTPS?
 
Hi,

is there a nice tutorial on how to setup SVN via Apache2/HTTPS with ISPConfig3?

Thanks,
Kira

Kira 30th September 2011 13:15

Or, to be a bit more specific - there are some tutorials I already read, but I don't know how to implement it with ISPConfig3...

Let my domain be http://www.myDomain.com
My SVN should be available trough https://svn.myDomain.com

So, a few questions:

1) Do i do this in the Options tab of myDomain.com, or should I create a Subdomain or completly new Domain?

2) As far as I found out, I have to add the following lines to my Apache config:

Code:

DAV svn
SVNParentPath /var/svn

AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /usr/local/svn-root/dav_svn.passwd
Require valid-user

SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem

But do I have to do all this with ISPConfig as well? Because I think ISPConfig is doing the SSL thing already... but what about the rest?


So in overall, what do I have to add to the Domain-Options -> Apache directives box? :)

Thanks,
Kira

falko 1st October 2011 10:26

AFAIK, if you enable SSL and create an SSL cert, ISPConfig creates two vhosts, one ofr http and one for https. If oyu enable WebDAV, it is added to both vhosts.

Kira 5th October 2011 04:18

Hi,

thanks a lot - got it to work :)

Only one thing... I added this to my Apache Directives in the Options tab:

Code:

        <Location /svn/>
                DAV svn
                SVNPath [....]
                AuthType Basic
                AuthName [...]
                AuthUserFile [...]
                Require valid-user
        </Location>

So I can access the SVN via:
https://www.myDomain.com/svn

But, I'd like to have it via:
https://svn.myDomain.com/

I tried to do this with an Sub-Domain entry (Redirect Type "NoFlag" and "/svn" as target), but this didn't work..

Any idea how I can do this?
I don't want to create a new site "svn.myDomain.com" just for this silly thing :(

Thanks,
Kira

Kira 10th October 2011 03:56

Is it not possible to do this?
Maybe with an own Apache Directive somehow?

Cheers,
Kira


All times are GMT +2. The time now is 15:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.