As you know, WordPress uses quite a lot of external Resources from the Internet – Plugins for example can be installed directly from your WordPress installation by downloading and installing them automatically, without the need to download Plugin installation files and then uploading them manually.

Not to mention that you might need to access external resources to activate a theme, update a plugin and so on.

However, your hosting provider might, for security reasons, require that external HTTP Connections be established over their Proxy server. This is in my experience almost always the case on Windows IIS hosting.

So, how to do this in WordPress? It is quite simple, really and there’s no need to write to Support or change general IIS settings. You can simply change WordPress Configuration file and hopefully everything should be fine. So, let’s get started.

Dowload the wp-config.php file using your favourite FTP Program and there you can add the following lines to configure your Proxy settings:

As always, DO NOT FORGET TO MAKE A BACKUP.

# Defines the proxy adress.
define( 'WP_PROXY_HOST',          'proxy-server-of-your-hosting-ptovider' );

# Defines the proxy port.
define( 'WP_PROXY_PORT',          '9000' );

# Define some adresses which 
# shouldn't be passed through a proxy.
define( 'WP_PROXY_BYPASS_HOSTS',  'localhost' );

# Optionally, configure Authentication
# define('WP_PROXY_USERNAME', '');
# define('WP_PROXY_PASSWORD', '');

Replace the placeholders with actual IP address or host name of proxy server, and 9000 with actual port number of the proxy server. 

After you upload the file, hopefully yourd WordPress installation should be able to access external resources. In rare cases, you might need to define Autentication as well.