It worked, thanks Shawn..

I have a followup question to my earlier post. kindly read further..

<<Question>>
While using 'pkg' client, how do I exclude certain authorities from passing
through the proxy?

I'm currently hosting the depot server on my dev box (intranet). In
addition, I can connect to internet via a proxy. These are my currently set
of authorities:

bash-3.2# pkg authority
AUTHORITY                           URL
opensolaris.org (preferred)         http://pkg.opensolaris.org/
localstbrepo                        http://opensolaris2.chn99/release/

After correcting the 'httpd.conf' as Shawn suggested, the pkg client
communication to my depot server seemed working fine. However,  my
communicaton with authorities that are on internet would fail..

bash-3.2# pkg refresh
bash-3.2# pkg authority
AUTHORITY                           URL
opensolaris.org (preferred)         http://pkg.opensolaris.org/
localstbrepo                        http://opensolaris2.chn99/release/
bash-3.2# pkg refresh
pkg: 1/2 catalogs successfully updated:
   Could not retrieve catalog from 'opensolaris.org'
URLError, reason: (8, 'node name or service name not known')
bash-3.2#

Therefore, I tried setting up the 'http_proxy' variable on my env to access
internet and 'pkg refresh' for 'pkg.opensolaris.org' would succeed. But, in
this case, since all the traffic isbeing passed through the proxy, 'pkg
refresh' to my local depot server would fail:

bash-3.2# pkg refresh
pkg: 1/2 catalogs successfully updated:
   Transfer from 'localstbrepo' timed out: 504 - Gateway Timeout. (happened
4 times)

Hence my request for information on excluding certain domain/URL in
http_proxy.
Request you to kindly provide your inputs here.

thanks,
Ram

On Sat, Feb 28, 2009 at 1:38 AM, Shawn Walker <[email protected]>wrote:

> ramanujan oops wrote:
>
>> I tried setting up a reverse proxy setup on my local box and I was
>> checking if I was able to start a depot server with proxy-base.
>> However, even after starting it with shifted base, pkg refresh/pkg
>> send would fail. Request your help in troubleshooting this. I followed
>> the below shown steps:
>>
>> 1) I edited the config file of apache2.2 to allow the reverse proxy.
>> (It is originally referenced as "http://opensolaris2.chn99.sun.com";).
>>
>> bash-3.2# cat /etc/apache2/2.2/httpd.conf | grep Proxy
>> ProxyPass       /release  http://opensolaris2.chn99.sun.com:10000/
>>
>
> You likely need a slash at the end of /release, in other words: "/release/"
>
> Cheers,
> --
> Shawn Walker
>
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to