squid를 이용한 리버스프록시 구축중 문제
글쓴이: jinwoo4130 / 작성시간: 수, 2015/09/23 - 2:56오전
안녕하세요
squid3를 이용해 리버스 프록시를 구성하고 있습니다
사용자가 제 서버에 바로 접근을 못하고 프록시 주소를 입력해야지 접근이 가능하데
제 서버가 한개일때는 작동이됩니다
하지만 첨부파일 처럼 여러개의 웹서버를 리버스로 설정할때는 에러도 안뜨고 그냥
"해당 웹페이지를 사용할 수 없음" 이 뜹니다
http://wiki.squid-cache.org/ConfigExamples/Reverse/MultipleWebservers#Reverse_Proxy_with_Multiple_Backend_Web_Servers
이거보고 똑같이 따라했습니다.
소스는 다음과 같습니다
http_port 10002 accel vhost defaultsite=www.naver.com icp_port 0 cache_peer 220.69.209.1 parent 80 0 no-query originserver name=server1 cache_peer 220.60.209.2 parent 80 0 no-query originserver name=server2 cache_peer 220.60.209.3 parent 80 0 no-query originserver name=server3 acl server1_acl dstdomain a.jinwoo.com http_access allow server1_acl cache_peer_access server1 allow server1_acl acl server2_acl dstdomain b.jinwoo.com http_access allow server2_acl cache_peer_access server2 allow server2_acl acl server3_acl dstdomain c.jinwoo.com http_access allow server3_acl cache_peer_access server3 allow server3_acl acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl all src 0.0.0.0/0.0.0.0 acl CONNECT method CONNECT acl QUERY urlpath_regex cgi-bin \? http_access allow all http_access deny all coredump_dir /var/spool/squid3 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 no_cache deny QUERY cache_mem 16 MB cache_dir ufs /var/spool/squid3 500 16 256 emulate_httpd_log on redirect_rewrites_host_header off cache_mgr <a href="mailto:jinwoo@naver.com" rel="nofollow">jinwoo@naver.com</a> log_icp_queries off cachemgr_passwd 123 buffered_logs on ~
무엇이 문제인지 알수있을까요? 그리고 혹시 squid 아시는분 있으면 아무내용이든 좋으니 글좀 남겨주시면 감사하겠습니다 ㅠ_ㅠ
File attachments:
첨부 | 파일 크기 |
---|---|
![]() | 9.89 KB |
Forums:
도움이 된다면...
squid3
reverse proxy squid
네이버. 구글. 다음 검색
찾아보시면. 되있는거 있을겁니다.
----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.
매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.
각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com
아마도...
url을 /etc/hosts ip url형식으로 안넣엇을듯
댓글 달기