Welcome! Log In Create A New Profile

Advanced

subversion behind nginx

Александр Кириллов
October 06, 2017 07:18AM
Hi, I have 2 almost identical vhost definitions:

1. https://svn.iproducts.test

location /repos/ {

set $dest $http_destination;
if ($http_destination ~ ^https://(.*)$) {
set $dest http://$1;
}

proxy_set_header Destination $dest;
proxy_pass http://127.0.0.1:80/repos/;
}

2. https://svn-test.iproducts.test

location / {

set $dest $http_destination;
if ($http_destination ~ ^https://(.*)$) {
set $dest http://$1;
}

proxy_set_header Destination $dest;
proxy_pass http://127.0.0.1:80/repos/;
}

The first one works and the second one doesn't and I don't understand why.
The only difference is the uri in location. Please advise. Details below.


I'm using the following commands to test the configs:

1. svn list https://svn.iproducts.test/repos/wordpress
branches/
tags/
trunk/
vendor/

2. svn list https://svn-test.iproducts.test/wordpress
....
svn: PROPFIND of '/repos/wordpress/!svn/vcc/default': authorization failed:
Could not authenticate to server: rejected Basic challenge (
https://svn-test.iproducts.test)


In the apache logs the first 3 lines are identical but the second PROPFIND
has '/repos/repos' instead of '/repos' and fails:

==> /var/log/httpd/access_log <==
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"
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"
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"

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"

....

==> /var/log/httpd/access_log <==
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"
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"
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"

==> /var/log/httpd/error_log <==
[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

==> /var/log/httpd/access_log <==
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"
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

subversion behind nginx

Александр Кириллов October 06, 2017 07:18AM

Re: subversion behind nginx

Anonymous User October 06, 2017 09:52AM

Re: subversion behind nginx

Александр Кириллов October 06, 2017 11:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready