SVN over HTTPS?

Discussion in 'Installation/Configuration' started by Kira, Sep 30, 2011.

  1. Kira

    Kira Member

    Hi,

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

    Thanks,
    Kira
     
  2. Kira

    Kira Member

    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
     
  3. falko

    falko Super Moderator

    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.
     
  4. Kira

    Kira Member

    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
     
  5. Kira

    Kira Member

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

    Cheers,
    Kira
     

Share This Page