User Tools

Site Tools


start:howto:navigationproxy

This is an old revision of the document!


Configure i-mscp to navigate behind a proxy

When connecting to the outside one can use proxy server to avoid part of the risk of being infected by using a list of trusted sites where you are connecting, in that case even if a website is infected, it won't be able to download the infection kit. On a server that stuff has to be configured in serveral places so i-mscp can use it, here are the places where you will have to configure the navigation proxy in order for it to work.

Apt-get

If you are on debian, you will have to configure the server to download its updates via proxy, you have to edit the file /etc/apt/apt.conf.d/proxy-guess and set it to:

Acquire::http::Proxy "http://user:[email protected]:3128/";

I-mscp engine

The perl engine of i-mscp installer relies on curl to download the information from the internet. To configurate curl through a proxy, you will have to create a file /root/.curlrc with a content like this:

proxy = http://user:[email protected]:3128

This is used to retrieve all the imscp addons (core components not directly developed bv i-mscp team) such as roundcube, phpmyadmin or ajaxplorer. More info here

Environment variables

The variable http_proxy needs to be exported so composer can download the packages (see here) You can either set the variables prior installing/upgrading i-mspcp

http_proxy = http://user:[email protected]:3128
https_proxy = http://user:[email protected]:3128  

Or add those same lines at the end of .bashrc (so the proxy will be enabled every time you log in)

Software packages

They are downloaded currently via file_get_contents(), using a proxy is more complex with this option, the approach in that case should be something like this Still it's not strictly necessary for the standard install.

/var/www/virtual/i-mscp.net/wiki/htdocs/data/attic/start/howto/navigationproxy.1364992993.txt.gz · Last modified: 2013/04/03 12:43 by aseques