There are caveats to proxy support. It requires that defines be made in the wp-config.php file to
enable proxy support. There are also a few filters that plugins can hook into for some of the
The constants are as follows:
- WP_PROXY_HOST - Enable proxy support and host for connecting.
- WP_PROXY_PORT - Proxy port for connection. No default, must be defined.
- WP_PROXY_USERNAME - Proxy username, if it requires authentication.
- WP_PROXY_PASSWORD - Proxy password, if it requires authentication.
- WP_PROXY_BYPASS_HOSTS - Will prevent the hosts in this list from going through the proxy.
You do not need to have localhost and the blog host in this list, because they will not be passed
through the proxy. The list should be presented in a comma separated list
An example can be as seen below.
define('WP_PROXY_BYPASS_HOSTS', 'localhost, www.example.com');