October 30, 2012 09:51AM
Добрый день!
Скажите пож у меня есть такой location

location ~* \.(txt|log|rar)$ {
access_log on;
rewrite ^ http://mysite/error? permanent;
}

он закрывает все файлы с перечисленными расширениями на всем сайте а сейчас мне надо сделать так чтоб файлы с расширениями txt были доступны но только из корня сайта а на всем остальном сайте доступ по прежнему был закрыт?

подскажите как написать правильный location?

заранее спс.
Subject Author Posted

помощь в location

selts October 30, 2012 09:51AM

Re: помощь в location

Daniel Podolsky October 30, 2012 10:24AM

Re: помощь в location

selts October 30, 2012 10:56AM

Re: помощь в location

Daniel Podolsky October 30, 2012 12:58PM

Re: помощь в location

Andrey Repin October 30, 2012 01:02PM

Re: помощь в location

VBart October 30, 2012 01:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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