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