Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dav_svn





On Sun, Mar 25, 2012 at 7:11 PM, Alex Belyanskiy <alex.barut@xxxxxxxxx> wrote:
.
SVNPath.

<Location /daca>
DAV svn
SVNPath /var/svn/daca
AuthType Basic
AuthName "Daca"
AuthUserFile /var/svn/daca/.htpasswd
Order deny,allow
Require valid-user
</Location>

nginx .

server {
listen 10.23.15.15;
server_name ~^(?<sub>.+)\.svn\.host\.ru$;

location / {
if ($request_method ~ PROPFIND|REPORT ){
rewrite ^/$daca(.*) $1 last;
}
proxy_pass http://$sub.svn.host.ru:8000/$sub$uri;
}
}

.

?:

server {
listen ...;
server_name *.svn.host.ru;

proxy_set_header Host $host;
}

--
Vladimir Rusinov
http://greenmice.info/
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru

  • References:

 




Copyright © Lexa Software, 1996-2009.