Alex Vorona | 19 Nov 14:20

Re: include file абсолютный путь

18.11.2008 17:40, Sergej kandyla wrote:
> 
> при обработке конструкции типа
>    <!--# include file="../__footer.html" -->
> 
> nginx ее интерпритирует как абсолютный путь
> 
> 008/11/18 15:25:18 [error] 75369#0: *841 unsafe URI 
> "/freebsd/../__footer.html" was detected while sending response to 
> client, client: xxx  server: yyy, request: "GET /freebsd/page2.html 
> HTTP/1.1", host: "yyy"
> 
> 
> на веб странице при этом пишет
> [an error occurred while processing the directive]
> 
> include virtual тоже не помогло.

<!--# include virtual="/__footer.html" -->
так не работает?
> 
> 
> есть ли способ, чтобы include понимало относительные пути?
> Спасибо!
> 
> 

Sergej kandyla | 20 Nov 12:37

Re: include file абсолютный путь

Alex Vorona wrote:
> 18.11.2008 17:40, Sergej kandyla wrote:
>>
>> при обработке конструкции типа
>>    <!--# include file="../__footer.html" -->
>>
>> nginx ее интерпритирует как абсолютный путь
>>
>> 008/11/18 15:25:18 [error] 75369#0: *841 unsafe URI 
>> "/freebsd/../__footer.html" was detected while sending response to 
>> client, client: xxx  server: yyy, request: "GET /freebsd/page2.html 
>> HTTP/1.1", host: "yyy"
>>
>> include virtual тоже не помогло.
>
> <!--# include virtual="/__footer.html" -->
> так не работает? 

То что нужно!!
Спасибо большое!

--

-- 
Best Wishes,
PAIX-UANIC | SK3929-RIPE

Alex Vorona | 20 Nov 13:45

Re: include file абсолютный путь

20.11.2008 13:37, Sergej kandyla wrote:
> Alex Vorona wrote:
>> 18.11.2008 17:40, Sergej kandyla wrote:
>>>
>>> при обработке конструкции типа
>>>    <!--# include file="../__footer.html" -->
>>>
>>> nginx ее интерпритирует как абсолютный путь
>>>
>>> 008/11/18 15:25:18 [error] 75369#0: *841 unsafe URI 
>>> "/freebsd/../__footer.html" was detected while sending response to 
>>> client, client: xxx  server: yyy, request: "GET /freebsd/page2.html 
>>> HTTP/1.1", host: "yyy"
>>>
>>> include virtual тоже не помогло.
>>
>> <!--# include virtual="/__footer.html" -->
>> так не работает? 
> 
> То что нужно!!
> Спасибо большое!
> 
> 
а <!--# include file="/__footer.html" -->
?

Igor Sysoev | 20 Nov 13:49

Re: include file абсолютный путь

On Thu, Nov 20, 2008 at 02:45:24PM +0200, Alex Vorona wrote:

> 20.11.2008 13:37, Sergej kandyla wrote:
> >Alex Vorona wrote:
> >>18.11.2008 17:40, Sergej kandyla wrote:
> >>>
> >>>при обработке конструкции типа
> >>>   <!--# include file="../__footer.html" -->
> >>>
> >>>nginx ее интерпритирует как абсолютный путь
> >>>
> >>>008/11/18 15:25:18 [error] 75369#0: *841 unsafe URI 
> >>>"/freebsd/../__footer.html" was detected while sending response to 
> >>>client, client: xxx  server: yyy, request: "GET /freebsd/page2.html 
> >>>HTTP/1.1", host: "yyy"
> >>>
> >>>include virtual тоже не помогло.
> >>
> >><!--# include virtual="/__footer.html" -->
> >>так не работает? 
> >
> >То что нужно!!
> >Спасибо большое!
> >
> а <!--# include file="/__footer.html" -->
> ?

Это то же самое. nginx не делает разницу между file и virtual.

--

-- 
(Continue reading)


Gmane