nginx 7 под windows 2003

Igor Sysoev is at rambler-co.ru
Mon May 4 23:00:40 MSD 2009


On Mon, Apr 27, 2009 at 08:46:35PM +0400, -=HaRius=- wrote:

> решил поюзать наконецто под винду
> самый обычный конфиг:
> 
> worker_processes  1;
> error_log  logs/error.log;
> events {
>     worker_connections  256;
> }
> http {
>     include       mime.types;
>     default_type  application/octet-stream;
>     access_log  logs/access.log  combined ;
>     keepalive_timeout  65;
>     server {
>         listen        82.xxx.xxx.114:443;
>         server_name   82.xxx.xxx.114;
>         location / {
>             root   E:/share;
>             autoindex on;
>         }
>     }
> }
> 
> система windows 2003 std + mui (помойму)
> на 80 порту выдал ошибку тестирования конфига, хотя ничего не запущено на
> нем, да он в целом не нужен, т.к.
> нужен главным образом https, поэтому в конфиге 443 =)
> 
> если запросить любой файл с русским именем имеем 500 ошибку, вот что в
> логах:
> 
> access.log:
> 
> 93.186.61.194 - - [27/Apr/2009:20:30:23 +0400] "GET /XEROX011.pdf HTTP/1.1"
> 200 131072 "http://82.xxx.xxx.114:443/" "Mozilla/5.0 (Windows; U; Windows NT
> 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR
> 3.5.30729)"
> 93.186.61.194 - - [27/Apr/2009:20:30:23 +0400] "GET /XEROX011.pdf HTTP/1.1"
> 206 4309 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20)
> Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)"
> 93.186.61.194 - - [27/Apr/2009:20:30:26 +0400] "GET /XEROX011.pdf HTTP/1.1"
> 206 1692338 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)"
> 93.186.61.194 - - [27/Apr/2009:20:30:32 +0400] "GET /XEROX011.pdf HTTP/1.1"
> 206 4309 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20)
> Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)"
> 93.186.61.194 - - [27/Apr/2009:20:30:32 +0400] "GET /XEROX011.pdf HTTP/1.1"
> 206 131072 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20)
> Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)"
> 93.186.61.194 - - [27/Apr/2009:20:30:34 +0400] "GET /XEROX011.pdf HTTP/1.1"
> 206 1114207 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)"
> 93.186.61.194 - - [27/Apr/2009:20:30:37 +0400] "GET
> /%c3%e5%ed%ef%eb%e0%ed%20%cf%d1%20%c0%f0%f5%e0%ed%e3%e5%eb%fc%f1%ea%e0%ff.pdf
> HTTP/1.1" 500 193 "http://82.118.xxx.xxx:443/" "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET
> CLR 3.5.30729)"
> 
> error.log:
> 
> 2009/04/27 20:30:16 [error] 2888#1420: *4 CreateFile() "E:/share/Схема
> СУ.pdf" failed (2: FormatMessage() error:(1815)), client: 93.186.61.194,
> server: 82.xxx.xxx.114, request: "GET /%d1%f5%e5%ec%e0%20%d1%d3.pdf
> HTTP/1.1", host: "82.xxx.xxx.114:443", referrer: "http://82.xxx.xxx.114:443/
> "
> 2009/04/27 20:30:20 [crit] 2888#1420: *4 CreateFile() "E:/share/Оформление
> заявки на ТП.pdf" failed (1113: FormatMessage() error:(1815)), client:
> 93.186.61.194, server: 82.xxx.xxx.114, request: "GET
> /%ce%f4%ee%f0%ec%eb%e5%ed%e8%e5%20%e7%e0%ff%e2%ea%e8%20%ed%e0%20%d2%cf.pdf
> HTTP/1.1", host: "82.xxx.xxx.114:443", referrer: "http://82.xxx.xxx.114:443/
> "
> 2009/04/27 20:30:37 [crit] 2888#1420: *8 CreateFile() "E:/share/Генплан
> ПС.pdf" failed (1113: FormatMessage() error:(1815)), client: 93.186.61.194,
> server: 82.xxx.xxx.114, request: "GET
> /%c3%e5%ed%ef%eb%e0%ed%20%cf%d1%20%c0%f0%f5%e0%ed%e3%e5%eb%fc%f1%ea%e0%ff.pdf
> HTTP/1.1", host: "82.xxx.xxx.114:443", referrer: "http://82.xxx.xxx.114:443/
> "
> 
> 
> как бороться? =)

Русские буквы должны быть в UTF-8.


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list