Welcome! Log In Create A New Profile

Advanced

index internal redirect

June 16, 2011 02:28PM
Сейчас при нахождении индексного файла делается внутрений редирект.
Это позволяет работать конфигурациям типа

location / {
index index.php;
}

location ~ \.php$ {
...
}

Но иногда нужно, чтобы обработка проиходила без редиректа,
например, для запрещения явного запроса /index.html, хотя это
можно решить так:

location = / {
index index.html;
}

location = /index.html {
internal;
}

У меня давно есть мысль сделать это настраиваемым, не могу только
придумать имя для директивы:

location = / {
index index.html;
index_stays on|off;
}


--
Игорь Сысоев
http://sysoev.ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

index internal redirect

Igor Sysoev June 16, 2011 02:28PM

Re: index internal redirect

Valery Kholodkov June 16, 2011 02:34PM

Re: index internal redirect

Igor Sysoev June 16, 2011 03:00PM

Re: index internal redirect

Valery Kholodkov June 16, 2011 03:40PM

Re: index internal redirect

Gena Makhomed June 19, 2011 10:30AM

Re: index internal redirect

Gena Makhomed June 19, 2011 10:44AM

Re: index internal redirect

Валентин Бартенев June 16, 2011 04:20PM

Re: index internal redirect

Gena Makhomed June 19, 2011 08:18AM

Re: index internal redirect

Валентин Бартенев June 19, 2011 11:48AM

Re: index internal redirect

Gena Makhomed June 19, 2011 12:20PM

Re: index internal redirect

Валентин Бартенев June 19, 2011 01:28PM

Re: index internal redirect

Gena Makhomed June 19, 2011 03:20PM

Re: index internal redirect

Gena Makhomed June 17, 2011 04:24PM

Re: index internal redirect

Gena Makhomed June 19, 2011 07:52AM

Re: index internal redirect

Gena Makhomed June 19, 2011 08:50AM

Re: index internal redirect

ruv June 20, 2011 03:54AM

Re: index internal redirect

Maxim Dounin June 16, 2011 03:58PM

Re: index internal redirect

Kirill A. Korinskiy June 16, 2011 04:00PM

Re: index internal redirect

Andrey N. Oktyabrski June 17, 2011 12:56AM

Re: index internal redirect

Gena Makhomed June 19, 2011 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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