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

 
19번째 줄: 19번째 줄:
Resolving non.existent (non.existent)... failed: Name or service not known.
Resolving non.existent (non.existent)... failed: Name or service not known.
wget: unable to resolve host address 'non.existent'
wget: unable to resolve host address 'non.existent'
</syntaxhighlight>
==예시==
<syntaxhighlight lang='aconf'>
# https://help.hcltechsw.com/hcllink/1.1.6/proxy_server/concept/c_no_proxy.html
NO_PROXY=localhost,some-domain.com
</syntaxhighlight>
<syntaxhighlight lang='aconf'>
# https://www.ibm.com/docs/ko/cloud-paks/cp-security/saas?topic=installation-configure-proxy-authentication
NO_PROXY=localhost,127.0.0.1,localaddress,corp.com,10.0.0.0/8
</syntaxhighlight>
<syntaxhighlight lang='aconf'>
# https://access.redhat.com/documentation/en-us/openshift_container_platform/3.4/html/installation_and_configuration/install-config-http-proxies
NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16
</syntaxhighlight>
</syntaxhighlight>



2024년 5월 7일 (화) 09:57 기준 최신판

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 예시[ | ]

# https://help.hcltechsw.com/hcllink/1.1.6/proxy_server/concept/c_no_proxy.html
NO_PROXY=localhost,some-domain.com
# https://www.ibm.com/docs/ko/cloud-paks/cp-security/saas?topic=installation-configure-proxy-authentication
NO_PROXY=localhost,127.0.0.1,localaddress,corp.com,10.0.0.0/8
# https://access.redhat.com/documentation/en-us/openshift_container_platform/3.4/html/installation_and_configuration/install-config-http-proxies
NO_PROXY=master.hostname.example.com,10.1.0.0/16,172.30.0.0/16

3 같이 보기[ | ]

4 참고[ | ]

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