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/

I believe with this entry, I can access, the depot server as:
http://opensolaris2.chn99.sun.com/release

2) I tried accessing "http://opensolaris2.chn99.sun.com/release"; via
browser and it was successful

3) Then I started the depot server with --proxy-base option
bash-3.2# /usr/bin/python2.4 /usr/lib/pkg.depotd
--proxy-base=http://opensolaris2.chn99.sun.com/release

4) I set the authority to this URL and I tried doing a pkg refresh,
but it fails with 504 error:

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:
    Transfer from 'localstbrepo' timed out: 504 - Gateway Timeout.
(happened 4 times)

I think the config setup by me is incorrect somwhere, but couldn't
identify. Can you kindly help me here..

regards,
Ram

On 1/6/09, Shawn Walker <[email protected]> wrote:
> ramanujan oops wrote:
>> Hi,
>>
>>     From the mail thread
>> (http://mail.opensolaris.org/pipermail/pkg-discuss/2008-December/009096.html)
>>
>> I understand that from release 2008.11, the new authority will be
>> referred to as: http://pkg.opensolaris.org/release
>> for stable revisions and "/dev" for development revisions.
>>
>> Are these branch paths in the URL actually folders on the host acting as
>> depot server (Similar to the /var/apache/htdocs)?
>
> No.  They are different depot servers reverse-proxied through Apache via
> URL using the --proxy-base parameter to the depot server.
>
>> Can we have our own branch similar to /release or /dev in the depot
>> service started by us?
>
> The depot server doesn't support this directly; you would need to
> reverse proxy the depot server through a webserver such as Apache and
> use the --proxy-base parameter [1]
>
> --
> Shawn Walker
>
> [1] http://blogs.sun.com/sch/date/20080221
>
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to