0
가상 도메인을 호스팅하는 웹 서버의 역방향 프록시로 Squid 3.1.10 (CentOS 6.4 최신 버전)을 사용하고 있습니다. 오징어가 클라이언트 IP를 웹 서버에 전달하도록 할 수는 없습니다. forwarded_for와 XFF 헤더를 다른 값으로 설정해 보았습니다.하지만 나는 계속해서 아파치의 액세스 로그에있는 Squid의 IP를 보았습니다 ... 비록 내가 forwarded_for를 "delete"로 설정했다 할지라도.Squid가 역방향 프록시 모드로 클라이언트 IP를 전달하지 않음
누군가 내 설정, pls를보고 마음에 드시겠습니까?
http_port 80 accel vhost
visible_hostname xxx.xxx.xxx
forwarded_for on
shutdown_lifetime 5 seconds
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl localnet src xxx.xxx.xxx.0/24 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
http_access allow localhost manager
http_access deny manager
acl Safe_ports port 80 443
http_access deny !Safe_ports
acl SSL_ports port 443
acl CONNECT method CONNECT
http_access deny CONNECT !SSL_ports
acl Safe_proto proto HTTP SSL
http_access deny !Safe_proto
################# BEGIN MAIN SERVER ########################
cache_peer xxx.xxx.xxx.xxx parent 80 0 no-query originserver name=mainwebserver
acl mainwebserver_cached_sites dstdomain .site1.com .site2.com
http_access allow mainwebserver_cached_sites
cache_peer_access mainwebserver allow mainwebserver_cached_sites
cache_peer_access mainwebserver deny all
################### END MAIN SERVER ########################
hierarchy_stoplist cgi-bin ?
#cache_dir ufs /var/spool/squid 100 16 256
coredump_dir /var/spool/squid
# Add any of your own refresh_pattern entries above these.
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
http_access deny all
오징어 3.4로 업그레이드했습니다. 새로운 설정 파일로 가져온 몇 가지 변경 사항은 여전히 동일한 문제, 어떤 아이디어로 나를 남겨 둡니까? – eskimoroll