• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

$remote_addr

[Nginx] 특정 IP만 접근 가능하도록 허용, 그 이외는 점검중 페이지로 redirect

배포 후 팀원들이 테스트하는 동안에 허용된 IP만 접근 가능하도록 하고, 그 이외의 IP 접근은 점검중 페이지로 가도록 하고 싶다. $remote_addr를 $maintenance에 mapping해준다. 점검 중 페이지로 redirect가 잘 되는 것을 확인할 수 있었다. 내 ip로 들어갈 경우에는, 정상적으로 접속이 잘 되어야 하기 때문에, ipconfig를 통해 찍히는 IPv4 주소를 o...

Nginxloadbalancer$http_x_forwarded_for$remote_addr$http_x_forwarded_for

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more