# How to install plugins behind a proxy

**URL:** <https://www.ruby-forum.com/t/how-to-install-plugins-behind-a-proxy/114834>\
**Category:** Rails\
**Created:** [September 17, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/how-to-install-plugins-behind-a-proxy/114834 "2007-09-17T22:29:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_HSSSSngaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b38774/32.png) [@Lucas\_HSSSSngaro](https://www.ruby-forum.com/u/Lucas_HSSSSngaro)\
**Post date:** [September 17, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/how-to-install-plugins-behind-a-proxy/114834/1 "2007-09-17T22:29:51Z")

</div>

Hello there.

I’m trying to install some plugins for my Rails application but my  
network is behind a proxy server. The gem installer have the -p  
parameter to configure a proxy and it works ok, but what about script/  
plugin install?

Thanks.

---

<div class="post-metadata">

**Author:** ![Lucas\_HSSSSngaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b38774/32.png) [@Lucas\_HSSSSngaro](https://www.ruby-forum.com/u/Lucas_HSSSSngaro)\
**Post date:** [September 19, 2007, 3:33am UTC](https://www.ruby-forum.com/t/how-to-install-plugins-behind-a-proxy/114834/2 "2007-09-19T03:33:23Z")

</div>

You can set http\_proxy to make it sense.

---

<div class="post-metadata">

**Author:** ![Lucas\_HSSSSngaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b38774/32.png) [@Lucas\_HSSSSngaro](https://www.ruby-forum.com/u/Lucas_HSSSSngaro)\
**Post date:** [September 29, 2007, 10:15am UTC](https://www.ruby-forum.com/t/how-to-install-plugins-behind-a-proxy/114834/3 "2007-09-29T10:15:02Z")

</div>

hi EricSun, can you please tell me in a more detailedly, I installed  
Instant Rails on a Windows machine. now i want to install a plugin but  
failing since i am not able to set the proxy server settings.

Awaited for your help. thanks in advance

Divya

On Sep 19, 6:32 am, “EricSUN(RailsBeijing)” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Lucas\_HSSSSngaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b38774/32.png) [@Lucas\_HSSSSngaro](https://www.ruby-forum.com/u/Lucas_HSSSSngaro)\
**Post date:** [September 30, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/how-to-install-plugins-behind-a-proxy/114834/4 "2007-09-30T17:10:59Z")

</div>

in linux systems you have to set a envionment variable like this,  
export http\_proxy=“[http://myproxyserver:8080](http://myproxyserver:8080)” # http can be what ever  
protocol your proxy server supports and myproxyserver can be a name or  
IP.

in windows i am not sure but i guess you try this,

right-click on MyComputer, then go to properties, click Advanced tab ,  
click on the button Environment Variables in the 3rd Row, add a new  
variable  
called http\_proxy if does not exist, then set the value as stated  
above.

If this is not working, you have to find out the variable equivalent  
to http\_proxy of linux to windows, then set it.

i guess thats what Eric was talking about.

and one more thing is none of the above works out, you can use this  
one  
ruby scripts/plugin install --http-proxy=“[http://myproxyserver:8080/](http://myproxyserver:8080/)”  
plugin-url  
for every plugin you install you have to give --http-proxy option, but  
if you use a environment variable you don’t have to give this.  
If given this takes priority over environment variable.

Good Luck,
