Welcome! Log In Create A New Profile

Advanced

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

May 22, 2017 07:38AM
Есть html-страница статьи, доступная всем. Надо на ней показать ссылку "Редактировать", доступную только некоторым юзерам.
Из статьи (test1.html) подключаю по SSI ссылку (test2.html), но почему то права на нее не проверяются. При прямом обращении из браузера - проверяются. Как заставить проверять при SSI?

test1.html (статья)
test1
<!--# include file="/test2.html" -->

(include virtual тоже пробовал)



test2.html (ссылка)
test2



Конфиг сайта:

server {
ssi on;

location = /test1.html {
}

location = /test2.html {
auth_request /test_auth;
}

location = /test_auth {
return 403;
}

}



Выводится при обращении к test1.html:
test1
test2


Должно выводиться:
test1
<403>


Выводится при обращении к test2.html (так и должно):
<403>
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: 210
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