Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
************************************
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.
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
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
Stopping squid: 2008/09/17 05:07:55| strtokFile: /home/deepak/sites/ not found
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.
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
************************************
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.