Double Redirect
Lebod
nginx-forum at forum.nginx.org
Sat Jun 25 05:42:51 UTC 2016
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?
Thank you v much
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267700,267874#msg-267874
More information about the nginx
mailing list