LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working (https://www.linuxquestions.org/questions/linux-server-73/squid-2-6-reverse-proxy-from-squid-3128-to-orginserver-80-not-working-647480/)

rraj 06-06-2008 02:29 PM

Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working
 
I am trying to setup a server mesasvr03 with SQUID 2.6STABLE20 to be a RP for my web server: mesasvr01.
I would like to get the configs off Port 80 as much as possible so that I can confirm this translation does indeed work.
I am currently using these settings in squid.conf...
Please see below...
Can some one show me how to make the changes such that I can have a Port Translation between say: mesasvr03:3128 ==RP==> mesasvr01:88

I tried the changes:
http_port mesasvr03.domain.com:3128 accel defaultsite=mesasvr03.domain.com
cache_peer 10.143.108.25 parent 88 0 no-query originserver name=myAccel login=PASS

However, squid kept forwarding it back to Port 80.

Currently, this config works only if I use for Port 80.

With Regards, Raj

------- Begin -------
-bash-3.00$ cat squid.conf
cache_effective_user squid
cache_effective_group squidadm

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
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 CONNECT method CONNECT
http_access allow manager
#http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access deny all
icp_port 0
icp_access allow all


#Syntax: http_port <SquidHostName>:80 accel defaultsite=<FullyQualifiedSquidHostName>
http_port mesasvr03.domain.com:80 accel defaultsite=mesasvr03.domain.com

#Syntax: cache_peer <WebServerApacheHostName or IP> parent 80 0 no-query originserver name=myAccel login=PASS
#E.g.: cache_peer mesasvr01.domain.com parent 80 0 no-query originserver name=myAccel login=PASS
cache_peer 10.143.108.25 parent 80 0 no-query originserver name=myAccel login=PASS
http_access allow all
cache_peer_access myAccel allow all

hierarchy_stoplist cgi-bin ?
acl METHODLIST method POST
no_cache deny METHODLIST

cache_mem 64 MB
maximum_object_size 2048 KB

access_log /usr/local/squid/var/logs/access.log squid

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
url_rewrite_host_header on
#always_direct allow all
coredump_dir /usr/local/squid/var/cache


-bash-3.00$

---------End --------


All times are GMT -5. The time now is 08:39 PM.