LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-19-2008, 02:58 AM   #1
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Rep: Reputation: 17
Squid Error


Squid Configuration :-

************************************
acl test dstdomain "/home/deepak/sites/"
# And finally deny all other access to this proxy
http_access deny test
http_access allow all
************************************


when I am trying to start squid service, getting below error...........startokfile is available, where in the conf mentioned

*************************************
[root@deepak deepak]# /etc/init.d/squid restart
Stopping squid: 2008/09/17 05:07:55| strtokFile: /home/deepak/sites/ not found
2008/09/17 05:07:55| aclParseAclLine: IGNORING invalid ACL: acl test dstdomain "/home/deepak/sites/"
2008/09/17 05:07:55| squid.conf line 1864: http_access deny test
2008/09/17 05:07:55| aclParseAccessLine: ACL name 'test' not found.
2008/09/17 05:07:55| squid.conf line 1864: http_access deny test
2008/09/17 05:07:55| aclParseAccessLine: Access line contains no ACL's, skipping
. [ OK ]
Starting squid: . [ OK ]
[root@deepak deepak]#

please solve me out, I am in problem, please help me out.

Thanks,
Deepak
 
Old 09-19-2008, 03:12 AM   #2
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
I ain't dabbled with squid too much beyond bog-standard configuration so I could be wrong but the following line:

Quote:
Originally Posted by deepak_message View Post
acl test dstdomain "/home/deepak/sites/"
Is not a domain or URL. What are you trying to block access to? A local www folder? Then you need to block access to the FQDN (e.g. www.mydomain.com) and path of that folder, not the "local filesystem" version of it.

This is given away by:

Quote:
Originally Posted by deepak_message View Post
Stopping squid: 2008/09/17 05:07:55| strtokFile: /home/deepak/sites/ not found
 
Old 09-19-2008, 04:34 AM   #3
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Original Poster
Rep: Reputation: 17
see, I want to make an allow and deny file. in which want to write add allow domains and deny domains. not directly mention domain name in the squid.cnf file. because I have so many domains.
 
Old 09-19-2008, 04:58 AM   #4
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
Howzit man

YOu need to remove the last / from your config line

************************************
acl test dstdomain "/home/deepak/sites/"
# And finally deny all other access to this proxy
http_access deny test
http_access allow all
************************************
 
Old 09-19-2008, 08:21 AM   #5
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Original Poster
Rep: Reputation: 17
Hi linuxgurusa,

Now Working fine :-)
Thank You very Much, for the helping.

Thanks;
 
Old 09-19-2008, 08:24 AM   #6
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
Quote:
Originally Posted by deepak_message View Post
Hi linuxgurusa,

Now Working fine :-)
Thank You very Much, for the helping.

Thanks;
Pleasure bud
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing squid : service squid start --> error jonaskellens Linux - Software 2 09-05-2008 03:06 AM
squid error leonfieoku Linux - Networking 1 02-06-2007 12:44 PM
Squid Error kemplej Linux - Software 1 12-17-2003 06:22 PM
Squid error Buttercups Linux - Newbie 4 10-22-2002 10:58 PM
squid error... anoop_chandran Linux - Networking 0 11-27-2001 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration