跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 为什么反代后没有权限??
未分類
8 4 月 2020

为什么反代后没有权限??

mryin 大佬有话说 : 2020-3-26 21:11:35

为什么反代后没有权限??

本帖最后由 mryin 于 2020-3-26 21:13 编辑

vps用filebrowser管理文件,可以直接删除、编辑、下载文件,为了方便访问,反向代理了filebrowser,并绑定了域名,配置如下:

server
    {
      listen443;
      #listen [::]:443;
      server_name xxx.com ;
      index index.html index.htm index.php default.html default.htm default.php;
      root/home/wwwroot/filebrowser;

      include rewrite/none.conf;
      #error_page   404   /404.html;

      # Deny access to PHP files in specific directory
      #location ~ /(wp-content|uploads|wp-includes|images)/.*.php$ { deny all; }

      include enable-php.conf;
      
      location / {
                proxy_pass http://localhost: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;
               
      access_log/home/wwwlogs/filebrowser.log;
      }
    }

但是反向代理后的filebrowser能编辑、下载、删除普通文件,就是没有权限操作php文件,不能删除、下载、或者编辑,需要通过ssh把xxx.php改为xxx才能编辑,有知道哪里的问题的大佬解答一下吧,对了。我的运行环境是lnmp一键包

一个不知名网友 大佬有话说 : 2020-3-26 21:12:15

因为这涉及到跨域权限问题

mryin 大佬有话说 : 2020-3-26 21:12:48

一个不知名网友 大佬有话说 : 2020-3-26 21:12
因为这涉及到跨域权限问题

具体需要怎么操作呢,大佬

mryin 大佬有话说 : 2020-3-26 21:14:12

还有知道的大佬吗?我很想解决这个问题

mryin 大佬有话说 : 2020-3-26 21:27:19

没人解答啊

坏鱼炒年糕 大佬有话说 : 2020-3-26 21:28:14

还缺个专门针对脚本的反代配置

mryin 大佬有话说 : 2020-3-26 21:32:44

坏鱼炒年糕 大佬有话说 : 2020-3-26 21:28
还缺个专门针对脚本的反代配置

是怎么配置的呢?大佬

mnihyc 大佬有话说 : 2020-3-26 22:27:36

因为你有些js没反代:lol

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具