redirect all HTTP request to HTTPS on NGINX

NGINX 사용시
HTTP로 들어오는 모든 접속을 HTTPS 로 리다이렉트 시키려면…


server {
listen 80;
server_name jirak.net www.jirak.net;
return 301 https://$host$request_uri;
}

 

http://jirak.net/haha.html 로 접속시

https://jirak.net/haha.html 로 리다이렉트 됨….

 

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.