<div dir="ltr">nginx версии 0.7.13<br><br>location /userpics/ {<br> alias /var/user/userpics/;<br>}<br><br>права на папку 777 и один и тот же юзер.<br><br>там картинка лежит (имя файла "нормальное". jpg). но выдает 404.<br>
<br>Чуть ниже еще один location.<br><br><br>location ~ "\.(js|ico|gif|jpg|mp3|png|txt|css|swf)$" {<br> expires 30d;<br> root /home/project/html;<br>}<br><br>debug log<br><br>2008/09/06 21:02:53 [debug] 32336#0: *1 http uri: "/userpics/quessir.jpg"<br>
2008/09/06 21:02:53 [debug] 32336#0: *1 http args: ""<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http exten: "jpg"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http process request header line<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Host: <a href="http://mysite.kz">mysite.kz</a>"<br>
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:<a href="http://1.9.0.1">1.9.0.1</a>) Gecko/2008070208 Firefox/3.0.1"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"<br>
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Accept-Language: en-us,en;q=0.5"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Accept-Encoding: gzip,deflate"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"<br>
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Keep-Alive: 300"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Connection: keep-alive"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Cookie: PHPSESSID=vtqape9137kn0bjs630o1vqhq6"<br>
2008/09/06 21:02:53 [debug] 32336#0: *1 http header done<br>2008/09/06 21:02:53 [debug] 32336#0: *1 event timer del: 16: 942721589<br>2008/09/06 21:02:53 [debug] 32336#0: *1 generic phase: 0<br>2008/09/06 21:02:53 [debug] 32336#0: *1 test location: "/"<br>
2008/09/06 21:02:53 [debug] 32336#0: *1 test location: "services/upload/"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 test location: "userpics/"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 test location: ~ "\.php$"<br>
2008/09/06 21:02:53 [debug] 32336#0: *1 test location: ~ "\.(js|ico|gif|jpg|mp3|png|txt|css|swf)$"<br>2008/09/06 21:02:53 [debug] 32336#0: *1 using configuration "\.(js|ico|gif|jpg|mp3|png|txt|css|swf)$"<br>
<br><br>Как видите перескакивает.<br></div>