2017-09-19 7 views
0

요청을 전달하기 위해 프록시로 squid를 구성 중이며 요청을 허용하는 대상은 example.com입니다. 이것은 브라우저에서 작성한 요청입니다. http://111.222.333.444/http://example.com 여기서 111.222.333.444는 squid가 설치된 프록시 서버의 IP입니다. 여기 squid가 대상 URL에서 슬래시를 제거

1505858815.396  0 12.34.56.78 NONE/400 3687 GET /http://example.com - NONE/- text/html 

내가

을 사용하고있는 구성입니다 :

그러나 서버가 /http://example.com (주 슬래시)를 가져 오기 위해 시도하는 동안 내가 잘못된 URL 오류가 발생하고, 여기에 액세스 로그 기록이다

acl manager proto cache_object 
acl localhost src 127.0.0.1/32 ::1 
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 
acl localnet src all   # Allow access from everywhere 

acl SSL_ports port 443 
acl Safe_ports port 80   # http 
acl CONNECT method CONNECT 
acl safe_url url_regex example\.com.* 

http_access allow safe_url 
http_access deny all 
http_access allow manager localhost 
http_access deny manager 

http_access deny !Safe_ports 
http_access deny CONNECT !SSL_ports 
http_access allow localnet 
http_access allow localhost 
http_access deny all 
http_port 80 
coredump_dir /var/spool/squid 
refresh_pattern ^ftp:   1440 20%  10080 
refresh_pattern ^gopher:  1440 0%  1440 
refresh_pattern -i (/cgi-bin/|\?) 0  0%  0 
refresh_pattern .    0  20%  4320 

내가 뭘 잘못하고 있니?

답변

0

알 수 있습니다. 오징어는 프록시이므로 서버에 대한 프록시 연결을 수행해야합니다. Firefox를 사용하는 경우 프록시를 설정하고 프록시 서버 IP 및 포트 번호를 입력하여 수행 할 수 있습니다. 일단 완료 URL이이 경우에 직접 사용할 수있는 직접 탐색 모음에서 이것을 사용 http://example.com

더 많은 방법을 설정 Firefox에 프록시와 Chrome

관련 문제