Docker run nginx-forward-proxy 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
39번째 줄: 39번째 줄:


==테스트 2==
==테스트 2==
{{소스헤더|http 테스트}}
<syntaxhighlight lang='console'>
testuser@localhost:~$ curl -sI -x http://127.0.0.1:3128 http://www.wtfpl.net/txt/copying/ | head -1
HTTP/1.1 200 OK
testuser@localhost:~$ docker logs proxy -n1
172.18.0.1 - - [29/Aug/2022:08:33:18 +0000] "GET http://www.wtfpl.net/txt/copying/ HTTP/1.1" 200 498 "-" "curl/7.74.0" "-"
</syntaxhighlight>
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
testuser@localhost:~$ curl -sI -x 127.0.0.1:3128 http://github.com/ | head -1
testuser@localhost:~$ curl -sI -x 127.0.0.1:3128 http://github.com/ | head -1
51번째 줄: 44번째 줄:
testuser@localhost:~$ docker logs proxy -n1
testuser@localhost:~$ docker logs proxy -n1
172.18.0.1 - - [29/Aug/2022:08:30:29 +0000] "HEAD http://github.com/ HTTP/1.1" 301 0 "-" "curl/7.74.0" "-"
172.18.0.1 - - [29/Aug/2022:08:30:29 +0000] "HEAD http://github.com/ HTTP/1.1" 301 0 "-" "curl/7.74.0" "-"
</syntaxhighlight>
{{소스헤더|https 테스트}}
<syntaxhighlight lang='console'>
testuser@localhost:~$ curl -sI -x http://127.0.0.1:3128 https://raw.githubusercontent.com/anak10thn/WTFPL/master/LICENSE.txt | head -1
HTTP/1.1 200 Connection Established
testuser@localhost:~$ docker logs proxy -n1
172.18.0.1 - - [29/Aug/2022:08:32:17 +0000] "CONNECT raw.githubusercontent.com:443 HTTP/1.1" 200 4982 "-" "curl/7.74.0" "-"
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)

이 문서에서 사용한 틀: