"NO PROXY"의 두 판 사이의 차이

23번째 줄: 23번째 줄:
==같이 보기==
==같이 보기==
{{z컬럼3|
{{z컬럼3|
* [[프록시]]
* [[http_proxy]]
* [[http_proxy]]
* [[https_proxy]]
* [[https_proxy]]

2023년 5월 1일 (월) 12:38 판

1 개요

NO_PROXY
no_proxy
  • proxy 설정을 유지한 채로, 예외 호스트를 지정하는 환경변수
  • http_proxy, https_proxy 환경변수가 설정되어 있더라도 해당 프록시를 경유하지 않고 직접 접속할 호스트명(도메인, IP)을 지정하는 환경변수
  • 대문자로 쓰는 경우와, 소문자로 쓰는 경우가 있고 여러 소프트웨어에서 이 환경변수를 인식하여 작동한다.
  • 이 문서의 표제어는 대문자로 되어 있는데, 사실상의 표준이라 할 수 있는 curl 문서( https://curl.se/docs/manual.html )를 따른 것이다.
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 }}