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

4번째 줄: 4번째 줄:
;NO_PROXY
;NO_PROXY
* proxy 설정을 유지한 채로, 예외 호스트를 지정하는 환경변수
* proxy 설정을 유지한 채로, 예외 호스트를 지정하는 환경변수
* [[http_proxy]], [[https_proxy]] 환경변수가 있더라도 거기에 지정된 프록시를 경유하지 않고 직접 접속할 호스트명(도메인, IP)을 지정하는 환경변수  
* [[http_proxy]], [[https_proxy]] 환경변수가 설정되어 있더라도 해당 프록시를 경유하지 않고 직접 접속할 호스트명(도메인, IP)을 지정하는 환경변수  


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>

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

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 }}