首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将web服务器放在反向代理之后,Wordpress博客就不能工作了

问将web服务器放在反向代理之后,Wordpress博客就不能工作了
EN

Server Fault用户
提问于 2010-02-24 15:57:46
回答 1查看 1.6K关注 0票数 1

我的博客已经运行了一年多了,但是现在我已经把服务器放在了反向代理之后,它陷入了一个无限循环中。

其他网站对这个新的代理很好;我仍然可以登录等等.所以这不是饼干的问题。

我在另一台机器上试过它也有同样的问题。

这是我的squid.conf:

代码语言:javascript
复制
#HTTP Reversing
#Set the port
http_port 1337 defaultsite=londinium.arcath.net vhost
#Londinium Hosts
cache_peer 10.0.0.45 parent 80 0 no-query originserver name=londinium
cache_peer_domain londinium londinium.arcath.net
#Whitefall
cache_peer 10.0.0.40 parent 80 0 no-query originserver name=whitefall
cache_peer_domain whitefall .arcath.net .ed-itsolutions.com


acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443          # https
acl SSL_ports port 563          # snews
acl SSL_ports port 873          # rsync
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl Safe_ports port 631         # cups
acl Safe_ports port 873         # rsync
acl Safe_ports port 901         # SWAT
acl web dstdomain 10.0.0.40
acl purge method PURGE
acl CONNECT method CONNECT

http_access allow all
http_access allow localhost
EN

回答 1

Server Fault用户

回答已采纳

发布于 2010-02-24 18:45:56

如果您没有运行最新版本的WordPress,则不支持反向代理。简而言之,WP不知道如何重写它动态生成的URL。

不过,修补WP并解决这个问题非常简单。工作方案支助论坛的这一专题有详细说明:

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/116295

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档