Double Redirect

Lebod nginx-forum at
Sat Jun 25 05:42:51 UTC 2016

Thank you for the reply Francis,

I have only 1 server {} with "".

I have one server block that listens on ports 80 and 443 to and
redirects to like this: 

server { 
listen 80; 
listen 443 ssl; 
server_name ***IP Address***; 
return 301$request_uri; 

Is that not correct?

Thank you v much

Posted at Nginx Forum:,267700,267874#msg-267874

More information about the nginx mailing list