2012-05-14 26 views
0

私は自分のnginxウェブサーバーにsvnサーバーを構築しました。私のnginxの構成は今svn using nginxコミットに失敗しました:パスが見つかりません

 
server { 
     listen 80; 
     server_name svn.mysite.com; 
     location/{ 
     access_log off; 
     proxy_pass http://svn.mysite.com:81; 
     proxy_set_header X-Real-IP $remote_addr; 
     proxy_set_header Host $host; 
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
     } 
     location ~ \.php$ { 
       fastcgi_pass 127.0.0.1:9000; 
       fastcgi_index index.php; 
       include fastcgi_params; 
     } 
} 

ですが、私はSVNは私がエラーを取得コミットしようとすると、任意の問題 を持つとせず、通常はをsvnのとを共同することができます

 
$svn up 
At revision 1285. 
$ svn info 
Path: . 
URL: http://svn.mysite.com/elpis-repo/crons 
Repository Root: http://svn.mysite.com/elpis-repo 
Repository UUID: 5303c0ba-bda0-4e3c-91d8-7dab350363a1 
Revision: 1285 
Node Kind: directory 
Schedule: normal 
Last Changed Author: alaa 
Last Changed Rev: 1280 
Last Changed Date: 2012-04-29 10:18:34 +0300 (Sun, 29 Apr 2012) 

$svn st 
M  config.php 
$svn ci -m "Just a test, add blank line to config" config.php 
Sending  config.php 
svn: Commit failed (details follow): 
svn: File 'config.php' is out of date 
svn: '/elpis-repo/!svn/bc/1285/crons/config.php' path not found 

私がしようとした場合svn coポート81(私のproxy_passはapacheです)とsvn ciに接続すると、スムーズに動作します! しかし、それを達成するためにnginxを使用すると、なぜ動作しませんか?
どんなアイデアも高く評価されています。

+0

何 'それが不可能な場合など、SVNのレポ・パスの下のファイルを、phpのキャッチするPHP 1の前の空の場所ブロックを追加svn info'は、 'config.php'が置かれているディレクトリから実行するといいでしょうか? –

+0

@malenkiy_scot:質問が編集されました。私はsvn infoを追加しました – Alaa

答えて

0

https://serverfault.com/questions/388835/svn-using-nginx-commit-failed-path-not-found/389021#answer-389021'>QUOTEDサーバの障害からの要求がキャッチされている
あなたの.php $ロケーションブロックによって、FastCGI経由でPHPに渡されます。 SVNリクエストが常にApacheにプロキシされるようにする必要があります。この仮想ホストにPHPが必要ない場合は、そのロケーションディレクティブを削除してください。特定のパスの下でPHPが必要な場合は、^/phpstuff /.*。php $のように、ロケーションブロックをより具体的にしてください。

 
location ~ ^/elpis-repo/.*\.php$ {} 


参照: https://serverfault.com/questions/388835/svn-using-nginx-commit-failed-path-not-found/389021#answer-389021

関連する問題