<div dir="ltr"><div>Hi, I have 2 almost identical vhost definitions:</div><div><br></div><div>1. <a href="https://svn.iproducts.test">https://svn.iproducts.test</a></div><div><br></div><div>location /repos/<span class="gmail-Apple-tab-span" style="white-space:pre">     </span>{</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>set $dest $http_destination;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span>if ($http_destination ~ ^https://(.*)$)<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>{</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>set $dest http://$1;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span>}</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>proxy_set_header Destination $dest;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>proxy_pass <a href="http://127.0.0.1:80/repos/">http://127.0.0.1:80/repos/</a>;</div><div>}</div><div><br></div><div>2. <a href="https://svn-test.iproducts.test">https://svn-test.iproducts.test</a></div><div><br></div><div>location /<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>{</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>set $dest $http_destination;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span>if ($http_destination ~ ^https://(.*)$)<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>{</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>set $dest http://$1;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span>}</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>proxy_set_header Destination $dest;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>proxy_pass <a href="http://127.0.0.1:80/repos/">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">https://svn.iproducts.test/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">https://svn-test.iproducts.test/wordpress</a></div><div>...</div><div>svn: PROPFIND of '/repos/wordpress/!svn/vcc/default': authorization failed: Could not authenticate to server: rejected Basic challenge (<a href="https://svn-test.iproducts.test">https://svn-test.iproducts.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/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/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/vcc/default HTTP/1.0" 401 460 "-" "SVN/1.6.11 (r934486) neon/0.29.3"</div><div><br></div></div>