nO PROXY

Jmnote (토론 | 기여)님의 2023년 5월 1일 (월) 12:26 판

1 개요

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