设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย Français

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 31|回复: 1

宝塔反代WordPress无法登陆后台问题

[复制链接]

14

主题

27

回帖

102

积分

注册会员

积分
102
发表于 2020-10-15 09:08:06 | 显示全部楼层 |阅读模式
在宝塔官方论坛找到的解决办法

代理配置文件中增加一个排除规则,如是多个目录,自行依次添加。
如是浏览器缓存可注释 expires 12h;

[ol]
  • location /admin
  • {
  • proxy_pass http://www.baidu.com;
  •     proxy_set_header Host www.baidu.com;
  •     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;
  •     expires 12h;
  • }[/ol]复制代码
  • 回复

    使用道具 举报

    20

    主题

    172

    回帖

    436

    积分

    中级会员

    积分
    436
    发表于 2020-10-15 09:08:42 | 显示全部楼层
    感谢 保存了
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2026-6-29 15:27 , Processed in 0.018300 second(s), 6 queries , Gzip On, Redis On.

    Powered by Discuz! X5.0

    © 2001-2026 Discuz! Team.

    快速回复 返回顶部 返回列表