Welcome! Log In Create A New Profile

Advanced

try_files и disable_symlink кэширование

Phil Kulin
June 24, 2012 07:46AM
Хочу сделать связку 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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

try_files и disable_symlink кэширование

Phil Kulin June 24, 2012 07:46AM

Re: try_files и disable_symlink кэширование

Валентин Бартенев June 24, 2012 11:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready