NO_PROXY

Jmnote (토론 | 기여)님의 2023년 5월 1일 (월) 12:34 판 (→‎개요)

1 개요

NO_PROXY
no_proxy
  • proxy 설정을 유지한 채로, 예외 호스트를 지정하는 환경변수
  • http_proxy, https_proxy 환경변수가 설정되어 있더라도 해당 프록시를 경유하지 않고 직접 접속할 호스트명(도메인, IP)을 지정하는 환경변수
export no_proxy=internal.example.com,internal2.example.com
$ env https_proxy=http://non.existent/ no_proxy=.gitlab.com curl https://gitlab.com
<html><body>You are being <a href="https://about.gitlab.com/">redirected</a>.</body></html>
$ env https_proxy=http://non.existent/ no_proxy=.gitlab.com wget https://gitlab.com
Resolving non.existent (non.existent)... failed: Name or service not known.
wget: unable to resolve host address 'non.existent'

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}