NGINX redirection issue
Maxim Dounin
mdounin at mdounin.ru
Fri Aug 8 14:51:47 UTC 2014
Hello!
On Thu, Aug 07, 2014 at 12:02:43PM -0400, manish-ezest wrote:
> Hello Maxim,
>
> Thank you for your response. Here is the my nginx settings
[...]
> server {
> listen 80;
> server_name www-aaa.com;
Note that server_name doesn't match domain in logs you've provided
and in other parts of your config.
[...]
> proxy_intercept_errors on;
> error_page 400 401 402 403 404 406 407 408 409 410 411 412 413 414 415 416
> 417 495 496 497 500 501 502 503 504 505 506 507 = /error_page.pl;
> error_page 405 =200 $uri;
I don't see anything in the config provided which may trigger
internal redirect to "/index.html" except this "error_page 405
=200 $uri". But this shouldn't trigger a loop unless you are also
using "recursive_error_pages", which is off by default.
Are you sure you are looking into the right config?
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list