On Jun 6, 2009, at 02:29, GiuseppeB wrote:
> Ryan Schmidt wrote:
>
>> Please clarify your goal: you would like Apache to run only on port
>> 80, and for Subversion to be served from this Apache instance on port
>> 80 (what you've shown above should accomplish this); or you would
>> like Apache to run on both port 80 and port 5432, and serve different
>> content on each (e.g. a web site from port 80 and the Subversion
>> repository from port 5432)? The latter can be accomplished by adding
>> an additional Listen directive for port 5432, and putting the
>> <Location /svn> block inside a <VirtualHost *:5432> block.
>
> Thanks Ryan for your reply.
> I tried to following your help.
> Yes, I want apache running on 80 and 5432 (it's just a number,
> following
> your help I'll change it) and serve web site on 80 and svn on 5432.
> How can I do it?
> I added in my httpd.conf virtual host around location svn in this
> way (I
> added also Listen 5432).
>
> Listen 5432
> <VirtualHost *:5432>
> <Location /svn>
> DAV svn
> SVNPath "C:/svn/repository"
> AuthType Basic
> AuthName "My subversion repository"
> AuthUserFile "C:/svn/conf/dav_svn.passwd"
> AuthzSVNAccessFile "C:/svn/conf/dav_svn.authz"
> Require valid-user
> </Location>
> </VirtualHost>
That looks correct to me. As far as I can tell it should work.
You may want to define a document root for this vhost, so that any
global document root you've defined doesn't interfere. Set it to an
empty directory, like:
DocumentRoot /var/empty
assuming /var/empty is an empty directory. Or make a new empty
directory somewhere to serve as a document root for this vhost. You
may want to put things in it later, like a favicon or an xslt
transform for the web view.
> Same error:
> Error: Server sent unexpected return value (403 Forbidden) in
> response to
> OPTIONS
> Error: request for 'http://62.149.161.250:5432/svn'
I don't know why this is happening. If you don't have a proxy server
interfering on this network, and you are certain that the username
and password you are using is correct, then it should be working.
Maybe someone else will see the problem.
> I noted just a thing. I have other virtual hosts (for web site )in
> extra\httpd-vhosts.conf
> I need to put svn virtual host in that file?
> Is it right the syntax?Please help me, I'm going mad.
The syntax looks correct to me. (Well, if it weren't, Apache would
not start, and would instead print a syntax error.) I think you can
put the directives anywhere you like. If you already have a place
where you usually put vhost configurations, then it probably makes
sense to put the Subversion virtual host there as well.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2360022
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-07 00:48:43 CEST