[squid-users] Squid Not working

From: Xavier B�ez C. <[email protected]>
Date: Tue, 06 Apr 2004 23:57:15 -0500

Dear Members

I followed the guidelines form the following URL (and coud understand
the whole process a bit better).
I changed Apache to port 81, and then I configured Squid to listen to
port 80

However, I also configured squid to run http_accel... on port 81

If I nmap to my box, I see the following:

80/tcp open http
81/tcp open hosts2-ns

However, when I go to www.socceraccess.com, I receive the following:

While trying to retrieve the URL: http://64.246.24.58:81/

The following error was encountered:

* Access Denied.*

The www.SoccerAccess.com site is only loading at the following URL:
www.socceraccess.net:81

I will really appreciate if anybody could help me out. Here is some information you may need:

1) When I run the following command: /usr/local/squid/sbin/squid -NCd1 I see the following output:

2004/04/06 23:56:43| Starting Squid Cache version 2.5.STABLE5 for i686-pc-linux-gnu...
2004/04/06 23:56:43| Process ID 20914
2004/04/06 23:56:43| With 1024 file descriptors available
2004/04/06 23:56:43| Performing DNS Tests...
2004/04/06 23:56:43| Successful DNS name lookup tests...
2004/04/06 23:56:43| DNS Socket created at 0.0.0.0, port 52378, FD 4
2004/04/06 23:56:43| Adding nameserver 207.218.192.39 from /etc/resolv.conf
2004/04/06 23:56:43| Adding nameserver 207.218.192.38 from /etc/resolv.conf
2004/04/06 23:56:43| Unlinkd pipe opened on FD 9
2004/04/06 23:56:43| Swap maxSize 512000 KB, estimated 39384 objects
2004/04/06 23:56:43| Target number of buckets: 1969
2004/04/06 23:56:43| Using 8192 Store buckets
2004/04/06 23:56:43| Max Mem size: 5120 KB
2004/04/06 23:56:43| Max Swap size: 512000 KB
2004/04/06 23:56:43| Rebuilding storage in /usr/local/squid/var/cache (CLEAN)
2004/04/06 23:56:43| Using Least Load store dir selection
2004/04/06 23:56:43| Set Current Directory to /usr/local/squid/var/cache
2004/04/06 23:56:43| Loaded Icons.
2004/04/06 23:56:43| Accepting HTTP connections at 0.0.0.0, port 80, FD 10.
2004/04/06 23:56:43| WCCP Disabled.
2004/04/06 23:56:43| Ready to serve requests.
2004/04/06 23:56:43| Done scanning /usr/local/squid/var/cache swaplog (0 entries)
2004/04/06 23:56:43| Finished rebuilding storage from disk.
2004/04/06 23:56:43| 0 Entries scanned
2004/04/06 23:56:43| 0 Invalid entries.
2004/04/06 23:56:43| 0 With invalid flags.
2004/04/06 23:56:43| 0 Objects loaded.
2004/04/06 23:56:43| 0 Objects expired.
2004/04/06 23:56:43| 0 Objects cancelled.
2004/04/06 23:56:43| 0 Duplicate URLs purged.
2004/04/06 23:56:43| 0 Swapfile clashes avoided.
2004/04/06 23:56:43| Took 0.4 seconds ( 0.0 objects/sec).
2004/04/06 23:56:43| Beginning Validation Procedure
2004/04/06 23:56:43| Completed Validation Procedure
2004/04/06 23:56:43| Validated 0 Entries
2004/04/06 23:56:43| store_swap_size = 0k
2004/04/06 23:56:44| storeLateRelease: released 0 objects

It seems like everything is working, check out this line:
Accepting HTTP connections at 0.0.0.0, port 80, FD 10. Therefore the whole internet should be able to browse through my pages.

2) Here are the modified lines that my squid.conf file has:
http_port 80
icp_port 0
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 5 MB
cache_dir ufs /usr/local/squid/var/cache 500 16 256
emulate_httpd_log on
redirect_rewrites_host_header off
cache_replacement_policy GDSF
http_access allow all
cache_mgr admin
cache_effective_user squid
cache_effective_group squid
httpd_accel_host 64.246.24.58
httpd_accel_port 81
log_icp_queries off
cachemgr_passwd xhbc19@2004 all
buffered_logs on
httpd_accel_with_proxy off

If I change the following line: httpd_accel_host 64.246.24.58 to this one: httpd_accel_host virtual

I keep receiving the same problem.

Thanks in advance for your time reading this :)

-----------------
Xavier B�ez C.
www.SoccerAccess.com
ICQ: 9103394
MSN: xbaez@hotmail.com
Received on Tue Apr 06 2004 - 23:02:16 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:01 MDT