Zephyr 发表于 2019-12-6 19:46:43

【已修复】root前缀域名存在bug

示例域名root.cc
主要表现在,设置运行目录public后,配置文件错乱,请修复这个问题。宝塔已最新

server
{
    listen 80;
    server_name root/www/wwwroot/root.cc/public;
    index index.php index.html index.htm default.php default.htm default.html;
    root /www/wwwroot/root/www/wwwroot/root.cc/public/public;
   
    #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引用配置,可以注释或修改
    include enable-php-72.conf;
    #PHP-INFO-END
   
    #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
    include /www/server/panel/vhost/rewrite/root/www/wwwroot/root.cc/public.conf;
    #REWRITE-END
   
    #禁止访问的文件或目录
    location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
    {
      return 404;
    }
   
    #一键申请SSL证书验证目录相关设置
    location ~ \.well-known{
      allow all;
    }
   
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
      expires      30d;
      error_log off;
      access_log /dev/null;
    }
   
    location ~ .*\.(js|css)?$
    {
      expires      12h;
      error_log off;
      access_log /dev/null;
    }
    access_log/www/wwwlogs/root/www/wwwroot/root.cc/public.log;
    error_log/www/wwwlogs/root/www/wwwroot/root.cc/public.error.log;
}


大炮运维V587 发表于 2019-12-7 09:29:18

非常感谢您的反馈,您修复下面板重新部署下站点,这个问题我们昨天已经修复了。


server
{
    listen 80;
    listen [::]:80;
    server_name dada.com;
    index index.php index.html index.htm default.php default.htm default.html;
    root /www/wwwroot/dapaoaaa.com/public;
   
    #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引用配置,可以注释或修改
    include enable-php-74.conf;
    #PHP-INFO-END
   
    #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
    include /www/server/panel/vhost/rewrite/dada.com.conf;
    #REWRITE-END
   
    #禁止访问的文件或目录
    location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
    {
      return 404;
    }
   
    #一键申请SSL证书验证目录相关设置
    location ~ \.well-known{
      allow all;
    }
   
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
      expires      30d;
      error_log off;
      access_log /dev/null;
    }
   
    location ~ .*\.(js|css)?$
    {
      expires      12h;
      error_log off;
      access_log /dev/null;
    }
    access_log/www/wwwlogs/dada.com.log;
    error_log/www/wwwlogs/dada.com.error.log;
}

Zephyr 发表于 2019-12-7 12:37:50

划重点: root前缀域名
已QQ联系,不知跟进的咋样了

大炮运维V587 发表于 2019-12-9 09:38:21

Zephyr 发表于 2019-12-7 12:37
划重点: root前缀域名
已QQ联系,不知跟进的咋样了

已经修复了,您点击面板右上角修复按钮即可
页: [1]
查看完整版本: 【已修复】root前缀域名存在bug