Configure the proxy authentication for Upstart based systems

Prev Next

Navigate to the respective directory, create the configuration file, and define the environment variable.

  1. Navigate to the file.

    /etc/init/mfetpd.conf

  2. Create a configuration file <proxyConfigFileName> in the /etc/default directory.

  3. Declare and export the environment variable of proxy in the <proxyConfigFileName> file.

    env 
    http_proxy="http://username:usernamepassword@sampleproxy.url:5678"
    export http_proxy
  4. Save the <proxyConfigFileName> file, and make sure that the file has execute permission.

  5. Navigate to the file /etc/init/mfetpd.conf

  6. In the script section of upstart file, add this command to allow your environment variables to be set for that process.

    ./etc/default/<proxyConfigFileName>