Welcome! Log In Create A New Profile

Advanced

Re: Rewrite отрабатывает до auth basic

October 12, 2012 04:03AM
В результате решил проблему так:

location ~* /admin {
auth_basic "admin location";
auth_basic_user_file conf.d/htpasswd;
root /path/to/nowhere;
error_page 404 = @redirect;
}
location @redirect {
rewrite ^/([^\/]+)$ /index.php?api=$1;
index index.php;
}
Subject Author Posted

Re: Rewrite отрабатывает до auth basic

Andrey Kopeyko October 11, 2012 04:08AM

Re: Rewrite отрабатывает до auth basic

aquarius October 11, 2012 05:34AM

Re: Rewrite отрабатывает до auth basic

aquarius October 12, 2012 04:03AM

Re: Rewrite отрабатывает до auth basic

Igor Sysoev October 12, 2012 04:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready