Wordpress使用代理访问网络
如果你的Wordpress服务器需要通过代理来访问网络的话。
![Wordpress使用代理访问网络](/content/images/size/w1200/2017/03/wordpress-bg-medblue.png)
如果你的Wordpress服务器需要通过代理来访问网络的话,可以在wp-config.php中加入以下代码:
/* Configure proxy Server */
define('WP_PROXY_HOST', 'www-cache.leeds.ac.uk');
define('WP_PROXY_PORT', '3128');
define('WP_PROXY_USERNAME', '');
define('WP_PROXY_PASSWORD', '');
define('WP_PROXY_BYPASS_HOSTS', 'localhost');
注意替换其中的代理地址。
参考来源:https://www.danbishop.org/2013/10/14/using-wordpress-behind-a-proxy/
Comments ()