Welcome! Log In Create A New Profile

Advanced

Re: Как сделать auth request при SSI?

May 23, 2017 06:10PM
Спасибо!

Свою задачу я решил следующим образом:

test1.html

test1
<!--# if expr="$allow_test2 = 1" -->
<!--# include file="/test2.html" -->
<!--# endif -->



Конфиг:

map $cookie_user_id:$request_uri $allow {
default 0;
1234:/path/page1.html 1;
4567:/path/page1.html 1;
}

server {
ssi on;

location = /test1.html {
}

location = /test2.html {
internal;
}
}
Subject Author Posted

Как сделать auth_request при SSI?

BorisK2 May 22, 2017 07:38AM

Re: Как сделать auth request при SSI?

Maxim Dounin May 22, 2017 08:52AM

Re: Как сделать auth request при SSI?

Maxim Dounin May 22, 2017 08:56AM

Re: Как сделать auth request при SSI?

BorisK2 May 22, 2017 08:35PM

Re: Как сделать auth request при SSI?

Maxim Dounin May 23, 2017 08:38AM

Re: Как сделать auth request при SSI?

BorisK2 May 22, 2017 08:23PM

Re: Как сделать auth request при SSI?

Maxim Dounin May 23, 2017 09:00AM

Re: Как сделать auth request при SSI?

BorisK2 May 23, 2017 06:10PM

Re: Как сделать auth request при SSI?

BorisK2 May 23, 2017 06:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
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