LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid Error (https://www.linuxquestions.org/questions/linux-server-73/squid-error-670986/)

deepak_message 09-19-2008 02:58 AM

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

ledow 09-19-2008 03:12 AM

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 (Post 3285319)
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 (Post 3285319)
Stopping squid: 2008/09/17 05:07:55| strtokFile: /home/deepak/sites/ not found


deepak_message 09-19-2008 04:34 AM

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.

linuxgurusa 09-19-2008 04:58 AM

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
************************************

deepak_message 09-19-2008 08:21 AM

Hi linuxgurusa,

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

Thanks;

linuxgurusa 09-19-2008 08:24 AM

Quote:

Originally Posted by deepak_message (Post 3285581)
Hi linuxgurusa,

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

Thanks;

Pleasure bud


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