<html><head></head><body 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 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>nginx@nginx.org</div><div><b>Reply To: </b>nginx@nginx.org</div><div><b>Subject: </b>subversion behind nginx</div></div></td></tr></tbody></table><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="_originalContent" style=""><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>
<br><!--end of _originalContent --></div></body></html>