ПРОЕКТЫ 


  АРХИВ 


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]

COPY и несуществующая директория = 500 Internal Server Error


  • To: nginx-ru@xxxxxxxxx
  • Subject: COPY и несуществующая директория = 500 Internal Server Error
  • From: Михаил Монашёв <postmaster@xxxxxxxxxxxxx>
  • Date: Sat, 28 Dec 2013 15:20:47 +0400
  • Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=softsearch.ru; h=date:from :reply-to:message-id:to:subject:mime-version:content-type :content-transfer-encoding; s=main; i=postmaster@xxxxxxxxxxxxx; bh=lM08KImipE6xQadQb+wn8Yu2PQo=; b=QGWyX3cIUsIoHHki1IS3G80soV3j 9jbZs7+RmWvNsQTPnsCJaeAxuyK2ImYGErc86aG7SCB7YDO1wEriSqTGhySgn0iP ha+l58H+D61bZFYBZ0E7tU8uLW/SqyYsTH0bZCye72A90Nr9BqF0gS7Af9mJwrjU reKGP0zUuEfh9ZE=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=softsearch.ru; h=date:from :reply-to:message-id:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=main; b=HPY4PzfFk2PFhdakp78 ng34Gpw4Es7MBK/xNFNJmCkWG3f716GCz4mQevnpCHcLvV+S+TUwRke7izOlkdUM CLMrJOHr1HxUL7ansWK98neJlI55UFCz39xIW8BT4hUFN+3Dn85f4NexCzTyj7CC EOyPK6+goLlU4IIGjfM5Oa2U=

Здравствуйте.

Бага или фича?

Если  через  WebDAV  копируется  несуществующий  файл  в  существующей
директории, то выдаётся 404. Но если копируется файл из несуществующей
директории  в  неё  же,  то  выдаётся 500 - Internal Server Error. Это
правильное поведение или должно 404 тоже выдаваться?

Пример:
копируем http://i39.beon.ru/17/74/1467417/47/avatars/4.jpeg
в  http://i39.beon.ru/17/74/1467417/47/avatars/4.jpeg.tmp
и получаем: 500 Internal Server Error

в error_log-е:
2013/12/28 11:54:28 [crit] 2845#0: *4749150 open() 
"/opt2/beon/i39/17/74/1467417/47/avatars/4.jpeg.tmp" failed (2: No such file or 
directory), client: 89.208.146.210, server: i39.beon.ru, request: "COPY 
http://i39.beon.ru/17/74/1467417/47/avatars/4.jpeg HTTP/1.1", host: 
"i39.beon.ru"

в access.log-e:
28/Dec/2013:11:54:28 +0400 500 89.208.146.210 353 i39.beon.ru "COPY 
http://i39.beon.ru/17/74/1467417/47/avatars/4.jpeg HTTP/1.1" "-" "-" "-" "-" 
"-" "-" "close"

на диске:
ls -l /opt2/beon/i39/17/74/1467417/47/avatars/
ls: /opt2/beon/i39/17/74/1467417/47/avatars/: No such file or directory

ls -l /opt2/beon/i39/17/74/1467417/47/
total 2
drwxr-xr-x  2 www  www  512 Feb 19  2012 45342747

nginx -V
nginx version: nginx/1.5.7
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I 
/usr/local/include' --with-ld-opt='-L /usr/local/lib' 
--conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx 
--pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log 
--user=www --group=www --with-debug --with-file-aio 
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp 
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp 
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp 
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp 
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp 
--http-log-path=/var/log/nginx-access.log --with-http_dav_module 
--with-http_image_filter_module --with-http_realip_module 
--with-http_stub_status_module --with-pcre




-- 
С уважением,
 Михаил                          mailto:postmaster@xxxxxxxxxxxxx

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.