Welcome! Log In Create A New Profile

Advanced

Re: https redirect going to infinite loop

Francis Daly
July 11, 2013 06:16PM
On Thu, Jul 11, 2013 at 07:27:14AM -0400, parulsood85 wrote:

Hi there,

> I am new to nginx. I am trying to redirect all request to https. This is the
> redirect i am using
>
> rewrite ^/(.*) https://example.com permanent;

What server{} block is this in?

What "listen" or similar directives apply in that block?

> somehow when I hit http://example.com on browser it goes to infinite loop.

What is the output when you do "curl -i http://example.com"?

And if it is a redirect, what is the output when you do a "curl -i"
on the redirected Location:?

> Note: ssl is enabled on the load balancer

Where is the load balancer in relation to nginx and the browser? What
does the load balancer do?

> Please help!

If you can provide the above details, it may be clearer where the problem
is and what the resolution is.

f
--
Francis Daly francis@daoine.org

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

https redirect going to infinite loop

parulsood85 July 11, 2013 07:27AM

Re: https redirect going to infinite loop

Francis Daly July 11, 2013 06:16PM

Re: https redirect going to infinite loop

parulsood85 July 12, 2013 02:50AM

Re: https redirect going to infinite loop

parulsood85 July 12, 2013 02:50AM

Re: https redirect going to infinite loop

Francis Daly July 12, 2013 04:12AM

Re: https redirect going to infinite loop

parulsood85 July 12, 2013 05:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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