ПРОЕКТЫ 


  АРХИВ 


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]

Не рабоает alias


  • To: nginx-ru@xxxxxxxxx
  • Subject: Не рабоает alias
  • From: "Rauan Maemirov" <rauan1987@xxxxxxxxx>
  • Date: Sat, 20 Sep 2008 21:26:37 +0600
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=RBZCxkGzY2sVC7wHcA4VmFRX5niDXkOHSY0yDTL2VAw=; b=tZeHBgFfz2rgGZCIPQZeOqMt9UXN/2zurSazD3k4G+EWWCJqa7QrEXqYNlofSTkpN0 IFeeBvZdIgYE8DUEBcXrp1DFNx9lkheckS3usfJI/ATEwBZy+KJO53ssNPGBAqdCATeL GiTR3LNSrvJ3wHoLfJ3bCa26/rEWUIB3l3loE=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=v8s5PoIDmH4S36Zh+qTyQKY7/OJc3HVLR5S4jZrKkRykrAyM9ECl3xryibhLtK4BBL iikSBmkFZpzqHmmTjNqWDAUI3ycudjp2X/6qk1mWCnEWaOrq9wegyRzTGmsY+MAitR7P fjY971EJIpobv+t6PqOcqpoKAMdkYDCme53T8=

nginx версии 0.7.13

location /userpics/ {
        alias /var/user/userpics/;
}

права на папку 777 и один и тот же юзер.

там картинка лежит (имя файла "нормальное". jpg). но выдает 404.

Чуть ниже еще один location.


location ~ "\.(js|ico|gif|jpg|mp3|png|txt|css|swf)$" {
        expires 30d;
        root /home/project/html;
}

debug log

2008/09/06 21:02:53 [debug] 32336#0: *1 http uri: "/userpics/quessir.jpg"
2008/09/06 21:02:53 [debug] 32336#0: *1 http args: ""
2008/09/06 21:02:53 [debug] 32336#0: *1 http exten: "jpg"
2008/09/06 21:02:53 [debug] 32336#0: *1 http process request header line
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Host: mysite.kz"
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:1.9.0.1) Gecko/2008070208 Firefox/3.0.1"
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"
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Accept-Language: en-us,en;q=0.5"
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Accept-Encoding: gzip,deflate"
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"
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Keep-Alive: 300"
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Connection: keep-alive"
2008/09/06 21:02:53 [debug] 32336#0: *1 http header: "Cookie: PHPSESSID=vtqape9137kn0bjs630o1vqhq6"
2008/09/06 21:02:53 [debug] 32336#0: *1 http header done
2008/09/06 21:02:53 [debug] 32336#0: *1 event timer del: 16: 942721589
2008/09/06 21:02:53 [debug] 32336#0: *1 generic phase: 0
2008/09/06 21:02:53 [debug] 32336#0: *1 test location: "/"
2008/09/06 21:02:53 [debug] 32336#0: *1 test location: "services/upload/"
2008/09/06 21:02:53 [debug] 32336#0: *1 test location: "userpics/"
2008/09/06 21:02:53 [debug] 32336#0: *1 test location: ~ "\.php$"
2008/09/06 21:02:53 [debug] 32336#0: *1 test location: ~ "\.(js|ico|gif|jpg|mp3|png|txt|css|swf)$"
2008/09/06 21:02:53 [debug] 32336#0: *1 using configuration "\.(js|ico|gif|jpg|mp3|png|txt|css|swf)$"


Как видите перескакивает.


 




Copyright © Lexa Software, 1996-2009.