WordPress Proxy Setting

When you install wordpress on you web hosting server that located behind proxy such as squid, some features may be disabled. those features like plugin installation and themes selection from internet will be disabled. You may receive message like this.

An Unexpected HTTP Error occurred during the API request.

inside your plugin page or

An Unexpected HTTP Error occurred during the API request.

on a wordpress error, blankpage

you will also receive this error message when you are trying to access theme installation page. if in ordinary hosting we find no problem, than in wordpress behind firewall it becomes a little problem, it make work little bit harder when we want to choose, install, and activate new themes or plugin that supported by wordpress.

we can solve this wordpress proxy setting by adding these lines in wp-config.php

define(‘WP_PROXY_HOST’, ‘192.168.84.101’);
define(‘WP_PROXY_PORT’, ‘8080’);
define(‘WP_PROXY_USERNAME’, ‘my_user_name’);
define(‘WP_PROXY_PASSWORD’, ‘my_password’);
define(‘WP_PROXY_BYPASS_HOSTS’, ‘localhost, www.example.com’);

but you have to make sure you knowproxy configuration in your work place or your hosting server. change the value inside wordpress proxy setting like this according to your own setting.

here is the example
define(‘WP_PROXY_HOST’, ‘cache.caleudum.com’);
define(‘WP_PROXY_PORT’, ‘8080’);
define(‘WP_PROXY_USERNAME’, ‘caleudum’);
define(‘WP_PROXY_PASSWORD’, ‘mypassword’);
define(‘WP_PROXY_BYPASS_HOSTS’, ‘localhost, www.example.com’);

Leave a Reply

Your email address will not be published. Required fields are marked *