Configure WordPress Proxy Server
If you are running WordPress on an IDNT Compute Cloud instance and want to access the internet (e.g., for updates, plugin downloads), you must configure the IDNT Compute Cloud proxy server.
Configuration in wp-config.php
Add the following lines to your wp-config.php file (before the line /* That's all, stop editing! */):
// IDNT Compute Cloud Proxy Configuration
define('WP_PROXY_HOST', 'proxy.idnt.net');
define('WP_PROXY_PORT', '3128');
Complete Proxy Configuration
For a complete configuration, you can also add the following options:
// IDNT Compute Cloud Proxy Configuration
define('WP_PROXY_HOST', 'proxy.idnt.net');
define('WP_PROXY_PORT', '3128');
// Optional: Bypass proxy for local addresses
define('WP_PROXY_BYPASS_HOSTS', 'localhost,127.0.0.1');
// Optional: Bypass proxy for specific hosts
// define('WP_PROXY_BYPASS_HOSTS', 'localhost,127.0.0.1,*.local');
wp-config.php Example
Here is a complete example:
<?php
/**
* WordPress Configuration
*/
// Database settings
define('DB_NAME', 'database_name');
define('DB_USER', 'database_user');
define('DB_PASSWORD', 'database_password');
define('DB_HOST', 'localhost');
// IDNT Compute Cloud Proxy Configuration
define('WP_PROXY_HOST', 'proxy.idnt.net');
define('WP_PROXY_PORT', '3128');
/* That's all, stop editing! Happy publishing. */
require_once ABSPATH . 'wp-settings.php';
Proxy Server Details
- Proxy Server: proxy.idnt.net
- Port: 3128
- Protocol: HTTP
- Authentication: Not required
Testing the Configuration
After configuration, you can test the proxy settings by:
- Checking for updates in the WordPress backend
- Installing or updating a plugin
- Installing or updating a theme
If the proxy configuration is correct, all of these actions should succeed.
More Information
For more information about proxy configuration, see our related articles for Linux, NodeJS, and PHP.