平台开发中,欢迎参与测试。你可以在 QQ群:1046115671 中与我们交流,或是直接在社区发帖
  • 孙锡源
    管理员

    把Nginx配置贴上来看看。

    另外可以先试试将插件目录改名,这样会禁用所有插件,从而排除插件对此的影响,再试试能不能打开。若能打开则逐个排查看看是具体哪个插件导致的问题。

  • 孙锡源
    管理员

    然后,发帖记得标题要概述问题,而不是用:“急急急”、“求助”之类的无价值内容

  • 呆憨
    楼主
    呆憨
    楼主
    呆憨
    楼主

    伪静态

    try_files $uri $uri/ /index.php?$args;

    server {
    listen 80;
    listen 443 ssl http2;
    server_name blog.daihan.top;
    ssl_certificate /data/wp/sites/blog.daihan.top/ssl/site.crt;
    ssl_certificate_key /data/wp/sites/blog.daihan.top/ssl/site.key;
    ssl_prefer_server_ciphers on;
    ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_session_cache shared:SSL:5m;
    ssl_session_timeout 5m;
    keepalive_timeout 75s;
    keepalive_requests 100;
    access_log /data/wp/sites/blog.daihan.top/log/nginx/access.log;
    error_log /data/wp/sites/blog.daihan.top/log/nginx/error.log;
    root /data/wp/sites/blog.daihan.top/www;

    if ($scheme = http) {
    return 301 https://$host$request_uri;
    }

    gzip on;
    gzip_comp_level 6;
    gzip_min_length 1k;
    gzip_types text/plain text/css text/xml text/javascript text/x-component application/json application/javascript application/x-javascript application/xml application/xhtml+xml application/rss+xml application/atom+xml application/x-font-ttf application/vnd.ms-fontobject image/svg+xml image/x-icon font/opentype;
    brotli on;
    brotli_comp_level 6;
    brotli_min_length 1k;
    brotli_types text/plain text/css text/xml text/javascript text/x-component application/json application/javascript application/x-javascript application/xml application/xhtml+xml application/rss+xml application/atom+xml application/x-font-ttf application/vnd.ms-fontobject image/svg+xml image/x-icon font/opentype;
    client_max_body_size 10M;

    location / {
    index index.html index.htm index.php;
    try_files $uri $uri/ /index.php?$args;
    }

    location ~ ^/.+\.php(/|$) {
    include conf.sitemgr.d/global/conf/fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /data/wp/sites/blog.daihan.top/www$fastcgi_script_name;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
    fastcgi_read_timeout 60s;
    fastcgi_pass unix:/data/wp/sites/blog.daihan.top/php-pool/php-fpm.sock;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico|bmp|swf|eot|svg|ttf|woff|woff2)$ {
    expires 30d;
    log_not_found off;
    }
    }

  • 耗子
    管理员

    检查下网站根目录是不是有类似.user.ini之类的文件,或者在面板关闭防跨站试试。

  • 孙锡源
    管理员

    楼上说的这个问题是有可能的。可能是.user.ini中配置了错误的基本路径。

    你需要在appnode上勾选“显示隐藏文件”才能看到

    • 呆憨
      楼主
      呆憨
      楼主
      呆憨
      楼主

      删除防跨站文件 的确解决404问题 和上次解决方法一样 目前数据库连接有误 正在自己配置中

  • 正在查看 5 条回复
    • 哎呀,回复话题必需登录。

    加入 LitePress 论坛 ,参与知识分享与交流
    登录 注册 进行评论
    立即加入