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

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 反代问题请教
未分類
13 2 月 2020

反代问题请教

coobar 大佬有话说 : 2019-12-17 09:36:01

反代问题请教

server
{
    listen 80;
    server_name 12345.cf;
    index index.php index.html index.htm default.php default.htm default.html;
    root /www/wwwroot/12345.cf;
   
    #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
    #error_page 404/404.html;
    #SSL-END
   
    #ERROR-PAGE-START错误页配置,可以注释、删除或修改
    error_page 404 /404.html;
    error_page 502 /502.html;
    #ERROR-PAGE-END
   
    #PHP-INFO-STARTPHP引用配置,可以注释或修改
    #PROXY-START
    location ~ /purge(/.*) {
      proxy_cache_purge cache_one www.t66y.com$request_uri$is_args$args;
      #access_log/www/wwwlogs/12345.cf_purge_cache.log;
    }
    location /
    {
      proxy_pass http://www.t66y.com;
      proxy_set_header Host www.t66y.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;
               
      #持久化连接相关配置
      #proxy_connect_timeout 30s;
      #proxy_read_timeout 86400s;
      #proxy_send_timeout 30s;
      #proxy_http_version 1.1;
      #proxy_set_header Upgrade $http_upgrade;
      #proxy_set_header Connection "upgrade";
      
      add_header X-Cache $upstream_cache_status;
      proxy_set_header Accept-Encoding "";
      sub_filter "www.t66y.com" "12345.cf";
      sub_filter_once off;
      expires 12h;
    }
   
    location ~ .*.(php|jsp|cgi|asp|aspx|flv|swf|xml)?$
    {
      proxy_set_header Host www.t66y.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;
      proxy_pass http://www.t66y.com;
      proxy_set_header Accept-Encoding "";
      sub_filter "www.t66y.com" "12345.cf";
      sub_filter_once off;
    }
   
    location ~ .*.(html|htm|png|gif|jpeg|jpg|bmp|js|css)?$
    {
      proxy_set_header Host www.t66y.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;
      proxy_pass http://www.t66y.com;
      
      #缓存相关配置
      proxy_cache cache_one;
      proxy_cache_key $host$request_uri$is_args$args;
      proxy_cache_valid 200 304 301 302 1h;
      proxy_set_header Accept-Encoding "";
      sub_filter "www.t66y.com" "12345.cf";
      sub_filter_once off;
      expires 24h;
    }
    #PROXY-END

        include enable-php-56.conf;
    #PHP-INFO-END
   
    #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
    include /www/server/panel/vhost/rewrite/12345.cf.conf;
    #REWRITE-END
   
    #禁止访问的文件或目录
    location ~ ^/(.user.ini|.htaccess|.git|.svn|.project|LICENSE|README.md)
    {
      return 404;
    }
   
    #一键申请SSL证书验证目录相关设置
    location ~ .well-known{
      allow all;
    }
   
    access_log/www/wwwlogs/12345.cf.log;
    error_log/www/wwwlogs/12345.cf.error.log;
}

反代的T66Y看上去一切正常,但是不能回复帖子,一回复就会提示非法操作,請返回
宝塔默认的代理方法。求能人看看哪里有问题,该怎么改

dtkevin 大佬有话说 : 2019-12-17 09:45:44

目测对方做了相关设置,不会,下一位。

zaizai 大佬有话说 : 2019-12-17 09:47:45

楼下大佬来解释一下yc007t

ealkeq 大佬有话说 : 2019-12-17 09:49:33

不看看log?

朕的大清完了? 大佬有话说 : 2019-12-17 09:55:34

同2楼,应该是token之类了,回复要认证签名的

coobar 大佬有话说 : 2019-12-17 09:56:11

这是日志文件

coobar 大佬有话说 : 2019-12-17 09:57:52

朕的大清完了? 大佬有话说 : 2019-12-17 09:55
同2楼,应该是token之类了,回复要认证签名的

这个应该怎么处理呀

auto8624 大佬有话说 : 2019-12-17 10:07:20

楼下大佬来解释一下:lol

nic2013 大佬有话说 : 2019-12-17 10:10:34

本帖最后由 nic2013 于 2019-12-17 10:13 编辑

同问,解决不了这个问题。 但是 caddy 反代1024可以正常回帖。

男役 大佬有话说 : 2019-12-17 10:10:57

文章導覽

上一篇文章
下一篇文章

AD

其他操作

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

51la

4563博客

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