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]

svn



. domain.com , domain.com/svn/ .
:
<VirtualHost *:81>
ServerName domain.com
documentroot /var/www/html/domain.com

ErrorLog /var/log/httpd/domain.error_log
CustomLog /var/log/httpd/domain.access_log combined

<directory "/var/www/html/domain.com">
Options FollowSymLinks -MultiViews -Indexes
AllowOverride All
Order allow,deny
Allow from all
</directory>

<Location "/svn/" >
DAV svn
Satisfy Any
SVNParentPath /var/www/html/domain.com/svn/
SVNListParentPath on
Require valid-user
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/httpd/conf.d/subversion.pass

</Location>

</VirtualHost>

nginx:

upstream apaches {
server 127.0.0.1:81 fail_timeout=30s;
}

server {
listen ip;
server_name domain.com;
access_log /var/log/nginx/domain_access.log;
error_log /var/log/nginx/domain.log error;
root /var/www/html/domain;

charset utf-8;

proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 700;
proxy_send_timeout 700;
proxy_connect_timeout 700;

location /svn/ {
proxy_pass http://apaches/svn/;
}

location / {
proxy_pass http://apaches;
index index.html index.php;
}

}

, , domain.com/svn/ .
svn-, nginx :

... - - [18/Nov/2009:15:20:20 +0100] "OPTIONS /svn HTTP/1.1" 301 185 "-" "SVN/1.6.5 (r38866) neon/0.28.6"
... - - [18/Nov/2009:15:20:20 +0100] "OPTIONS / HTTP/1.1" 200 0 "-" "SVN/1.6.5 (r38866) neon/0.28.6"
... - - [18/Nov/2009:15:20:21 +0100] "OPTIONS /svn HTTP/1.1" 301 185 "-" "SVN/1.6.5 (r38866) neon/0.28.6"
... - - [18/Nov/2009:15:20:21 +0100] "OPTIONS / HTTP/1.1" 200 0 "-" "SVN/1.6.5 (r38866) neon/0.28.6"
... - - [18/Nov/2009:15:20:21 +0100] "OPTIONS /svn HTTP/1.1" 301 185 "-" "SVN/1.6.5 (r38866)/TortoiseSVN-1.6.5.16974 neon/0.28.6"

/, /svn/.

, :

Repository moved permanently to http://domain.com/svn/; please relocate.

?


--
Best regards,
Anton Kiryushkin,


  • Follow-Ups:

 




Copyright © Lexa Software, 1996-2009.