> ## Content Index
> Fetch the complete content index at: https://yinguobing.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Wordpress使用代理访问网络
- URL: https://yinguobing.com/blog/wordpress-working-behind-proxy/
- Published: 2017-03-09T08:25:52.000Z
- Updated: 2022-05-29T07:17:41.000Z
- Description: 如果你的Wordpress服务器需要通过代理来访问网络的话。
- Author: 尹国冰
- Tags: 生活故事

如果你的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/](https://www.danbishop.org/2013/10/14/using-wordpress-behind-a-proxy/?ref=yinguobing.com)