[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd] How do I configure two subversion repositories on one apache server?
From:       Ron Tech <rontech101 () gmail ! com>
Date:       2017-10-23 22:33:50
Message-ID: CAKTzQdXysBxRRajvG5wHJjSAjJmAtHe4GGoZy0Fza_rZ+0F+RA () mail ! gmail ! com
[Download RAW message or body]

Hi I have two svn repositories on the same apache server under two virtual
hosts on port 9000. Both hosts have their own certificates.  The problem
is, when I try to try and do an svn up I get this error below.  For some
reason an svn up to server1.example.com results in trying to access
server2.example.com  Should I use a different port number for each server?
Other solutions....?
Thanks!

svn up .
Updating '.':
Error validating server certificate for 'https://server1.example.com:9000':
 - The certificate hostname does not match.
 - The certificate has an unknown error.
Certificate information:
 - Hostname: server2
 - Valid: from Aug 25 20:47:00 2017 GMT until Aug 24 20:47:00 2022 GMT


Listen 9000
<VirtualHost *:9000>
  ServerName server1.example.com

  DocumentRoot "/mnt/data/www"

        # SVN
        <Location "/repository1">
                SetOutputFilter DEFLATE
                SetInputFilter DEFLATE

                DAV svn
                SVNPath /mnt/data/repository1
                LimitXMLRequestBody 0

                AuthType Basic
                AuthName "repository1"
                AuthUserFile /mnt/data/repository1/svn-auth-file

                Require valid-user

                AuthzSVNAccessFile /mnt/data/repository1/acl
        </Location>

and

Listen 9000
<VirtualHost *:9000>
  ServerName server2.example.com

  DocumentRoot "/mnt/data/www"


        # SVN
        <Location "/repository2">
                SetOutputFilter DEFLATE
                SetInputFilter DEFLATE

                DAV svn
                SVNPath /mnt/data/repository2
                LimitXMLRequestBody 0

                AuthType Basic
                AuthName "repository2"
                AuthUserFile /mnt/data/repository2/svn-auth-file

                Require valid-user

                AuthzSVNAccessFile /mnt/data/repository2/acl
        </Location>

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hi I have two svn repositories on the same apache server under \
two virtual hosts on port 9000. Both hosts have their own certificates.   The problem \
is, when I try to try and do an svn up I get this error below.   For some reason an \
svn up to <a href="http://server1.example.com">server1.example.com</a> results in \
trying to access <a href="http://server2.example.com">server2.example.com</a>   \
Should I use a different port number for each server?   Other \
solutions....?</div><div>Thanks!</div><div><br></div><div>svn up .</div><div>Updating \
&#39;.&#39;:</div><div>Error validating server certificate for &#39;<a \
href="https://server1.example.com:9000">https://server1.example.com:9000</a>&#39;:</div><div> \
- The certificate hostname does not match.</div><div>  - The certificate has an \
unknown error.</div><div>Certificate information:</div><div>  - Hostname: \
server2</div><div>  - Valid: from Aug 25 20:47:00 2017 GMT until Aug 24 20:47:00 2022 \
GMT</div><div><br></div><div><br></div><div>Listen 9000</div><div>&lt;VirtualHost \
*:9000&gt;</div><div>   ServerName <a \
href="http://server1.example.com">server1.example.com</a></div><div><br></div><div>   \
DocumentRoot &quot;/mnt/data/www&quot;</div><div><br></div><div>            # \
SVN</div><div>            &lt;Location &quot;/repository1&quot;&gt;</div><div>        \
SetOutputFilter DEFLATE</div><div>                        SetInputFilter \
DEFLATE</div><div><br></div><div>                        DAV svn</div><div>           \
SVNPath /mnt/data/repository1</div><div>                        LimitXMLRequestBody \
0</div><div><br></div><div>                        AuthType Basic</div><div>          \
AuthName &quot;repository1&quot;</div><div>                        AuthUserFile \
/mnt/data/repository1/svn-auth-file</div><div><br></div><div>                        \
Require valid-user</div><div><br></div><div>                        \
AuthzSVNAccessFile /mnt/data/repository1/acl</div><div>            \
&lt;/Location&gt;</div><div><br></div><div>and  </div><div><br></div><div>Listen \
9000</div><div>&lt;VirtualHost *:9000&gt;</div><div>   ServerName <a \
href="http://server2.example.com">server2.example.com</a></div><div><br></div><div>   \
DocumentRoot &quot;/mnt/data/www&quot;</div><div><br></div><div><br></div><div>       \
# SVN</div><div>            &lt;Location &quot;/repository2&quot;&gt;</div><div>      \
SetOutputFilter DEFLATE</div><div>                        SetInputFilter \
DEFLATE</div><div><br></div><div>                        DAV svn</div><div>           \
SVNPath /mnt/data/repository2</div><div>                        LimitXMLRequestBody \
0</div><div><br></div><div>                        AuthType Basic</div><div>          \
AuthName &quot;repository2&quot;</div><div>                        AuthUserFile \
/mnt/data/repository2/svn-auth-file</div><div><br></div><div>                        \
Require valid-user</div><div><br></div><div>                        \
AuthzSVNAccessFile /mnt/data/repository2/acl</div><div>            \
&lt;/Location&gt;</div><div><br></div><div><br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic