[CentOS] Tomcat with squid username/password

lingu hicheerup at gmail.com
Sat Sep 20 19:29:51 UTC 2008


HI,

  If it is an squid proxy then you can bypass the tomcat server from the
squid using two steps.

1) using   url_regex   in squid

2) you can  masquerade that particular tomcat server ip using iptables on
the squid box  using iptables.

Regards,

Lingu

On Thu, Sep 11, 2008 at 8:28 AM, Harry Sukumar <hsukumar at bond.edu.au> wrote:

>  Hi,
>
>
>
> I am trying to help my friend on this
>
>
>
>
>
> --------------------------------------------------------------------------
>
> Hi,
>
> I have an application deployed on tomcat 5.5 with java 1.6.0_07.
>
> Occasionally the application needs to connect through our proxy to the
> outside to collect patches.
>
> I've added the following options to the JAVA_OPTS and restarted tomcat.
>
> -Dhttp.proxyUser =username
> -Dhttp.proxyPassword =password
> -Dhttp.proxyHost=proxy.company.com.au
> -Dhttp.proxyPort=3128
>
> Using snoop on the squid proxy I can see the requests, but the
> username/password combinations are not being sent and the tomcat
> application receives a 407/DENIED message.
>
> Is there a reason the username/password are not being sent? Our squid
> proxy uses both NTLM and basic authentication.
>
> thanks
>
>
>
> Harry
>
>
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080921/82a4c1c5/attachment.html>


More information about the CentOS mailing list