Answers for "nginx redirect 301 to https"

4

redirect nginx 301

server { 
listen 80; 
server_name serverdomain.com;
     return 301 http://serverdomain.com$request_uri; 
}
Posted by: Guest on April-30-2021

Browse Popular Code Answers by Language