[MOBY-dev] Proxies...

Beatrice Schildknecht beatrice at arabidopsis.info
Thu Jan 29 16:58:01 UTC 2004


Help note/patch for those using proxy servers. This is how I got MOBY to use my proxy server:

1) In:

         /MOBY/Client/OntologyServer.pm
         /MOBY/Client/Central.pm

Change all occurences of: 

          my $ua = LWP::UserAgent->new;

to:

          my $ua = LWP::UserAgent->new(env_proxy=>1);

2) In your httpd.conf file, set environmental variables to use your proxy server. e.g.:

           setenv HTTP_proxy http://wwwcache.nottingham.ac.uk:3128
           setenv CGI_HTTP_PROXY http://wwwcache.nottingham.ac.uk:3128

3) Restart http.

[4) Set your environmental variables again. How I did it in my .bashrc config file:

        export CGI_HTTP_proxy=http://wwwcache.nottingham.ac.uk:3128
        export HTTP_proxy=http://wwwcache.nottingham.ac.uk:3128 ]

See www.cpan.org for more. (This may not be the best way of doing it....Any other ideas welcome....Mark, would it be possible for this be fixed in the next update?)

Thanks,
Beatrice


-- 
Nottingham Arabidopsis Stock Centre
School of Biosciences
Plant Science Division
University of Nottingham
Sutton Bonington Campus
Loughborough 
LE12 5RD

Tel: +44 115 951 3091
http://arabidopsis.info









More information about the MOBY-dev mailing list