<div dir="ltr"><div>Thanks for your answer, I suspected as much. Is there a more detailed explanation of why the paths must match? Can it be helped with rewrite rules, additional headers or changing subversion settings?</div><div><br></div><div>I can move subversion to / on an apache host but it's gonna be twice as slow and the grand idea is to speed up subversion operations moving it to a non-ssl backend.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-06 16:50 GMT+03:00 <span dir="ltr"><<a href="mailto:duanemulder@rattyshack.ca" target="_blank">duanemulder@rattyshack.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="en-US" style="background-color:rgb(255,255,255);line-height:initial"> <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">Hello</div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">With svn behind nginx you cannot change the path. The second location needs to be /repos as well</div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">=D</div> <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br style="display:initial"></div> <div style="font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">Sent from the last QNX <wbr>powered smartphone</div> <table width="100%" style="background-color:white;border-spacing:0px"> <tbody><tr><td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)"> <div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in;font-family:Tahoma,'BB Alpha Sans','Slate Pro';font-size:10pt"> <div><b>From: </b>Александр Кириллов</div><div><b>Sent: </b>Friday, October 6, 2017 7:16 AM</div><div><b>To: </b><a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a></div><div><b>Reply To: </b><a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a></div><div><b>Subject: </b>subversion behind nginx</div></div></td></tr></tbody></table><div><div class="h5"><div style="border-style:solid none none;border-top-color:rgb(186,188,209);border-top-width:1pt;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"></div><br><div id="m_18133135245709946_originalContent"><div dir="ltr"><div>Hi, I have 2 almost identical vhost definitions:</div><div><br></div><div>1. <a href="https://svn.iproducts.test" target="_blank">https://svn.iproducts.test</a></div><div><br></div><div>location /repos/<span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>{</div><div><br></div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>set $dest $http_destination;</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>if ($http_destination ~ ^https://(.*)$)<span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>{</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>set $dest http://$1;</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>}</div><div><br></div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>proxy_set_header Destination $dest;</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>proxy_pass <a href="http://127.0.0.1:80/repos/" target="_blank">http://127.0.0.1:80/repos/</a>;</div><div>}</div><div><br></div><div>2. <a href="https://svn-test.iproducts.test" target="_blank">https://svn-test.iproducts.<wbr>test</a></div><div><br></div><div>location /<span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>{</div><div><br></div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>set $dest $http_destination;</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>if ($http_destination ~ ^https://(.*)$)<span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>{</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>set $dest http://$1;</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>}</div><div><br></div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>proxy_set_header Destination $dest;</div><div><span class="m_18133135245709946gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>proxy_pass <a href="http://127.0.0.1:80/repos/" target="_blank">http://127.0.0.1:80/repos/</a>;</div><div>}</div><div><br></div><div>The first one works and the second one doesn't and I don't understand why.</div><div>The only difference is the uri in location. Please advise. Details below.</div><div><br></div><div><br></div><div>I'm using the following commands to test the configs:</div><div><br></div><div>1. svn list <a href="https://svn.iproducts.test/repos/wordpress" target="_blank">https://svn.iproducts.test/<wbr>repos/wordpress</a></div><div>branches/</div><div>tags/</div><div>trunk/</div><div>vendor/</div><div><br></div><div>2. svn list <a href="https://svn-test.iproducts.test/wordpress" target="_blank">https://svn-test.iproducts.<wbr>test/wordpress</a></div><div>...</div><div>svn: PROPFIND of '/repos/wordpress/!svn/vcc/<wbr>default': authorization failed: Could not authenticate to server: rejected Basic challenge (<a href="https://svn-test.iproducts.test" target="_blank">https://svn-test.iproducts.<wbr>test</a>)</div><div><br></div><div><br></div><div>In the apache logs the first 3 lines are identical but the second PROPFIND has '/repos/repos' instead of '/repos' and fails:</div><div><br></div><div>==> /var/log/httpd/access_log <==</div><div>127.0.0.1 - - [06/Oct/2017:13:43:54 +0300] "OPTIONS /repos/wordpress HTTP/1.0" 401 460 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div>127.0.0.1 - xxxxx [06/Oct/2017:13:43:54 +0300] "OPTIONS /repos/wordpress HTTP/1.0" 200 195 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div>127.0.0.1 - xxxxx [06/Oct/2017:13:43:54 +0300] "PROPFIND /repos/wordpress HTTP/1.0" 207 661 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div><br></div><div>127.0.0.1 - xxxxx [06/Oct/2017:13:43:54 +0300] "PROPFIND /repos/wordpress/!svn/vcc/<wbr>default HTTP/1.0" 207 415 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div><br></div><div>...</div><div><br></div><div>==> /var/log/httpd/access_log <==</div><div>127.0.0.1 - - [06/Oct/2017:13:40:49 +0300] "OPTIONS /repos/wordpress HTTP/1.0" 401 460 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div>127.0.0.1 - xxxxx [06/Oct/2017:13:40:52 +0300] "OPTIONS /repos/wordpress HTTP/1.0" 200 195 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div>127.0.0.1 - xxxxx [06/Oct/2017:13:40:52 +0300] "PROPFIND /repos/wordpress HTTP/1.0" 207 661 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div><br></div><div>==> /var/log/httpd/error_log <==</div><div>[Fri Oct 06 13:40:52 2017] [error] [client 127.0.0.1] access to /repos/repos/wordpress/!svn/<wbr>vcc/default failed, reason: verification of user id 'xxxxx' not configured</div><div><br></div><div>==> /var/log/httpd/access_log <==</div><div>127.0.0.1 - xxxxx [06/Oct/2017:13:40:52 +0300] "PROPFIND /repos/repos/wordpress/!svn/<wbr>vcc/default HTTP/1.0" 401 460 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div><br></div></div>
<br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br></div>