[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn with virtual hosts

From: James FitzGibbon <jfitzgibbon_at_primustel.ca>
Date: 2005-03-10 13:16:06 CET

Are you using name based virtual hosts? If so, it won't work. You have to
use IP based
virtual hosts to use SSL, because the handshaking (which requires a specific
X.509 cert)
has to happen prior to the client sending the "Host:" header that allows
name base virtual
hosts to work.

Here are two SSL-enabled virtual hosts that I use:

# docs repository
Listen x.x.x.x:443
<VirtualHost x.x.x.x:443>
    ServerName docs.vcs.foo
    SSLEngine on
    SSLCertificateFile conf/docs.vcs.foo.cert.pem
    SSLCertificateKeyFile conf/docs.vcs.foo.req.pem
    <Location />
        SSLRequireSSL
        DAV svn
        SVNPath /opt/svn/docs
    </Location>
</VirtualHost>

# rpm repository
Listen x.x.x.y:443
<VirtualHost x.x.x.y:443>
    ServerName rpm.vcs.foo
    SSLEngine on
    SSLCertificateFile conf/rpm.vcs.foo.cert.pem
    SSLCertificateKeyFile conf/rpm.vcs.foo.req.pem
    <Location />
        SSLRequireSSL
        DAV svn
        SVNPath /opt/svn/rpm
    </Location>
</VirtualHost>

Hope that helps.

Regards

-----Original Message-----
From: dave [mailto:dmehler26@woh.rr.com]
Sent: Thursday, March 10, 2005 12:03 AM
To: users@subversion.tigris.org
Subject: svn with virtual hosts

Hello,
    I've got subversion working with apache2. I want now to add a virtual
host for each site, currently there are three of them,
http://www.example.com example.net example.org Svn is working fine. The
three virtual hosts all require ssl and i've moved my dav and svn
information under them, now when i start apache i'm getting virtual host
conflicts port conflicts. I'm using the standard port 443.
Thanks.
Dave.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.1 - Release Date: 3/4/2005
 
-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.1 - Release Date: 3/4/2005
 
-- 
----------------------------------------------------------------------------
This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.
----------------------------------------------------------------------------
Pour la version en français de ce message, veuillez voir
 http://www.primustel.ca/fr/legal/cs.htm
----------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 10 13:18:47 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.