Welcome! Log In Create A New Profile

Advanced

Re: Проблема с add_header + try_files

April 12, 2015 02:51PM
Убрал условие. Заголовок стал передаваться на каждый запрос с кукой. Стало работать...

location ~ \.html {
gzip_static on;
root xxx;

add_header Set-Cookie "__lastip=$remote_addr;Domain=$host;Path=/;Max-Age=31536000";

try_files $uri /index.php$is_args$args;
}
Subject Author Posted

Проблема с add_header + try_files

alexpts April 12, 2015 02:16PM

Re: Проблема с add_header + try_files

alexpts April 12, 2015 02:51PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready