Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
try_files и disable_symlink кэширование
- To: nginx-ru@xxxxxxxxx
- Subject: try_files и disable_symlink кэширование
- From: Phil Kulin <schors@xxxxxxxxx>
- Date: Sun, 24 Jun 2012 15:44:39 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=MxLzq1YjOc+jX6Y6HM2ZziZ28V4JJVlarpV0P2z1v7I=; b=BcPTjmMCAAn7vNuIxWRJagNtFJxuKAk1eulRetUW1pYV+Zh36zS0ZeZ+bM5jQIRSe7 TgEPyPjolDNF5x+xLznXTc9l6GOXlTQcqqqk5F145dIT0jqp5PXeBzkOhDqzQ/3vTfp/ LAijYp+/F6yeetV0wBgT/A/BenvalNisdzC/qHw5ZGXSL/teKxrYAT4VGReK/58+CZre dQN6v7bGd1/WzTWG2O8hReaIDuzNSMHPi1bji8RCc9IerK54xT/sAdut/JiN2QJXB1E1 MbPe9SXBBnjcNV8BCpSRHn+Sr9hf20mF7biHeDkikvxYox84Ynt+XI+f4h/3Jt/x/rPf /ttw==
Хочу сделать связку try_files и disable_symlink.
Примерно так:
server {
include 10.10.10.10:80;
server_name example1.com;
root /home/vasya/public_html;
location / {
proxy_pass http://127.0.0.1;
}
location /static {
disable_symlinks if_not_owner
from=/home/vasya/public_html;
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1;
}
}
server {
include 10.10.10.10:80;
server_name example2.com;
root /home/petya/public_html;
location / {
proxy_pass http://127.0.0.1;
}
location /static {
disable_symlinks if_not_owner
from=/home/petya/public_html;
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1;
}
}
Вопрос - кэшируются ли проверки disable_symlinks хотя бы в смысле
наличия symlink в пути? Имеет ли смысл настраивать open_file_cache_* ?
Если нет, то имеет ли смысл вообще такая конструкция?
P.S. FreeBSD-8.2-RELEASE amd64, nginx 1.2.1
--
Non nobis Domine non nobis sed Nomini Tuo da gloriam
Phil Kulin
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|