Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Trying to install fresh squid proxy in windows server 2016 (tried in 2019 also), basic_ncsa_auth.exe is not running.
OS:- windows 2016/2019
Squid:- 3.5.28.

Is there any way to identify that why it is not running or if anything blocking.

What I have tried:

Solution provided in below links:-
http://xaviertidus.com/linux/could-not-determine-this-machines-public-hostname-please-configure-one-or-set-visible_hostname-squid/

http://squid-web-proxy-cache.1019090.n4.nabble.com/WARNING-Could-not-determine-this-machines-public-hostname-Please-configure-one-or-set-visible-hostna-td4663074.html

https://serverfault.com/questions/414201/config-squid-for-windows-with-basic-authorization-but-squid-still-denied-access

https://gist.github.com/yvanin/ef831720112c1f6ee8c3

but no luck.
Posted
Updated 23-Aug-20 19:36pm

1 solution

By adding following lines in squid.conf file it starts running.

auth_param basic program C:\Squid\lib\squid\basic_ncsa_auth.exe C:\Squid\etc\.htpasswd
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users
auth_param basic children 5 startup=5 idle=1

here in last line 5 stands for number of processes that can be changed to any number.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900