Re: https redirect going to infinite loop

2013-07-12 Thread parulsood85
Hello Francis, Here is the curl o/p executed from browser machine. c:\curl>curl.exe -i http://example.com HTTP/1.1 301 Moved Permanently Content-Type: text/html Date: Fri, 12 Jul 2013 08:53:12 GMT Location: https://example.com Server: nginx/1.2.8 Content-Length: 184 Connection: keep-alive 301 M

Re: https redirect going to infinite loop

2013-07-12 Thread Francis Daly
On Fri, Jul 12, 2013 at 02:50:56AM -0400, parulsood85 wrote: Hi there, >server { > listen 80; > server_name example.com; So: nginx is not listening for https requests? > location / { > rewrite ^(.*) https://example.com permanent; >

Re: https redirect going to infinite loop

2013-07-11 Thread parulsood85
Hello Francis, Thanks for the quick reponse. Here is the snipet of the config being used # http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_u

Re: https redirect going to infinite loop

2013-07-11 Thread parulsood85
Hello Francis, Thanks for the quick reponse. Here is the snipet of the config being used # http { include mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_u

Re: https redirect going to infinite loop

2013-07-11 Thread Francis Daly
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 a

https redirect going to infinite loop

2013-07-11 Thread parulsood85
Hi, 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; somehow when I hit http://example.com on browser it goes to infinite loop. Note: ssl is enabled on the load balancer Please help! Regards, Par