我在cloudflare上将域名解析到宝塔A,并建立了一个空网站;宝塔B建立了一个wordpress网站,使用网址加端口访问,没有解析域名。现在用宝塔A反向代理宝塔B,出现503错误。
A的反向代理配置:
#PROXY-START/
location ~* \.(gif|png|jpg|css|js|woff|woff2)$
{
proxy_pass http://xxx.xxx.xxx.xxx:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
expires 12h;
}
location /
{
proxy_pass http://xxx.xxx.xxx.xxx:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
add_header Cache-Control no-cache;
}
#PROXY-END/
B网站的nginx配置:
server
{
listen 81;
index index.php index.html index.htm default.php default.htm default.html;
......略
请问大佬,是哪里有问题呢?
|
|