LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   access 8080 web server port through squid running on 8080 (https://www.linuxquestions.org/questions/linux-networking-3/access-8080-web-server-port-through-squid-running-on-8080-a-553961/)

sunethj 05-15-2007 12:48 AM

access 8080 web server port through squid running on 8080
 
We have a squid proxy running on port 8080 and we want to allow access to a web server running on port 8080 through the squid box.

Adding port 8080 to the Safe_ports list does not resolve the problem.

Please help. Thanks in advance.

acid_kewpie 05-16-2007 03:21 PM

safe_ports is the right way to do it (among others of course..) what does your config actually look like now?

sunethj 05-16-2007 08:28 PM

now the configuration options are (only posting relevant stuff);

http_port 8080

acl all src 0.0.0.0/0.0.0.0
acl test src 192.168.27.115-192.168.27.120/255.255.255.255
acl DBN src 192.168.0.0/255.255.224.0
acl DBN src 172.23.0.0/255.255.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 SSL_ports port 8443
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 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 8080 # misc
acl CONNECT method CONNECT

acid_kewpie 05-17-2007 01:46 AM

hmm, ok looks fine. what's the corresponding access.log entries look like?

sunethj 05-17-2007 01:56 AM

this is the access.log entry;

Quote:

1179404674.102 8502 172.23.129.119 TCP_MISS/000 0 GET http://192.168.71.61:8080/ - DIRECT/192.168.71.61 -

acid_kewpie 05-17-2007 03:18 AM

well that's a valid cache miss... looks fine to me.

sunethj 05-17-2007 04:21 AM

yes. but the problem is this is the only log entry i see whenever a user try to access that site. However when we access the site bypassing proxy we can see the contents of that site.

Quote:

DIRECT/192.168.71.61 -
does this mean that the proxy dops 8080 from the outgoing request?

acid_kewpie 05-17-2007 04:43 AM

no, it's says that the proxy server is going direct to that machine to fulfil the requst.

sunethj 05-17-2007 08:27 PM

thanks for your reply. However since that method does not work can you please tell me an alternative way.

acid_kewpie 05-18-2007 12:51 AM

sorry? i guess you really don't understand what your own question actually is? squid is working correctly. totally fine...

sunethj 05-18-2007 02:18 AM

well the thing is if squid works well (regarding port 8080) why can't i see the web page when using squid and why can i see when i bypass proxy. in both case i only type http://192.168.71.61:8080/ in the browser. I tried with IE and Firefox as well.

Thanks.

acid_kewpie 05-18-2007 02:38 AM

well try viewing that page from the server machine itself, that's effectively what squid appears to be doing already...


All times are GMT -5. The time now is 02:27 PM.