Double Redirect

Edho Arief me at myconan.net
Sat Jun 25 05:50:06 UTC 2016


Hi,

On Sat, Jun 25, 2016, at 14:42, Lebod wrote:
> Thank you for the reply Francis,
> 
> I have only 1 server {} with "example.com".
> 
> I have one server block that listens on ports 80 and 443 to example.com
> and
> redirects to https://www.example.com like this: 
> 
> server { 
> listen 80; 
> listen 443 ssl; 
> server_name example.com ***IP Address***; 
> return 301 https://www.example.com$request_uri; 
> } 
> 
> Is that not correct?
> 


Looking at your previous posts indicated there are more server blocks
than the ones you posted. Posting output of nginx -T may help.



More information about the nginx mailing list