server-side/nginx

nginx 301 redirect

C/H 2014. 6. 5. 08:22
참고

How to configure nginx to redirect all request from domain aliases to main domain?

NGINX 301 Redirects

server {
	listen *;
	listen 443 ssl;

	server_name .domain1.com;
	rewrite ^ $scheme://domain2.com permanent;
}

반응형