Operating System - Linux
1824976 Members
3223 Online
109678 Solutions
New Discussion юеВ

HTTP Error 401.2 due to Squid Proxy

 
stripling20
Occasional Contributor

HTTP Error 401.2 due to Squid Proxy

Hi people,

i have faced one issue with my squid-3.0 proxy server. i Googled a lot but could not able to fix the problem.

My problem is i cannot access the url "http://docs.*******.com/SSIIMobileDev/BBDevelopment/Forms/AllItems.aspx", Despite it produce error message "You are not authorized to view this page". But my proxy does not contain any rules to block this site.

i have tried to access the site by commenting some rules such as the line containing URL blocked list "url_regex -i ", mime(req_mime_type) etc, but no solution.

so any one guide me to fix this problem. For your reference i have attached my proxy settings in this page.

Note: I can access to that site without my proxy. so im sure that, the real problem is with my proxy.

Do some Needful
What we think today is our tomorrow's future
5 REPLIES 5
Vijaya Kumar_3
Respected Contributor

Re: HTTP Error 401.2 due to Squid Proxy


First thing I would do is, to check whether this error (HTTP Error 401) comes from Squid proxy or from the web server.

Please check the web server log files for Web SErver that hosts docs.********.com. If this is the apache web server, you may need to check access.log and errors.

If this is the error from the web server, then, you need to fix the web server hosting docs.********.com.

I am not a squid expert. However I feel this is not a Squid issue, but the web server issue. I may be wrong....

If you feel this is the Squid issue, checking the squid log file may help.
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
stripling20
Occasional Contributor

Re: HTTP Error 401.2 due to Squid Proxy

Thanks for your response vijay.

According to your statement, if there is an issue with web server, we should not get access from IP right.

I can get access to that site, if that site doesn't passes to proxy server. (which i had tested by accessing my internet directly through ISP, inspite of sending to proxy server and then ISP)

So there is no problem with Apache Web server.

Am i right????
What we think today is our tomorrow's future
Vijaya Kumar_3
Respected Contributor

Re: HTTP Error 401.2 due to Squid Proxy

That is correct. Sorry, I didn't catch that earlier. Then, I feel it could be the issue in Squid.

#1. Please check if you can access the website directly (with direct access) through your proxy?

http://docs.******.com

Do you able to access?

#2. Check the log files for the errors. If there are no entries, you may need to enable debugging and try to search the logs.


Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
stripling20
Occasional Contributor

Re: HTTP Error 401.2 due to Squid Proxy

1.)Actually we have two gateway servers.

i.)Coimbatore proxy server n
ii.) chennai located in appropriate places

If i route the packets via chennai proxy server,i can get access but not via cbe proxy.
I even tried to see the difference in cbe n chenni proxy server conf but no major difference.

2.) Where to see my log files.
What we think today is our tomorrow's future
Horia Chirculescu
Honored Contributor

Re: HTTP Error 401.2 due to Squid Proxy

Hello,

>Where to see my log files.

You should check your squid configuration file. Ususally you can find it here:

/etc/squid/squid.conf

In there you have a directive called

cache_log

If not configured (or redirected to /dev/null), you can configure squid to place this file somewhere you have enough space.

Re-configure squid (using squid -k reconfigure) afther you edit squid.conf.

Horia.
Best regards from Romania,
Horia.