为了能快速了解并处理您的问题,请提供以下基础信息: 面板、插件版本:宝塔:V9.0.0 Nginx:V1.24.0 系统版本:[rootQlocalhost etc]# cat /etc/os-release NAME="Anolis os" VERSION="8.95" ID="anolis' ID_LIKE="rhel fedora centos" VERSION ID="8.9" PLATFORM_ID="platform:an8" PRETTY NAME="Anolis os 8.9" NST COLOR-"G'31!HOME_URL="https://openanolis.cn/"
问题描述:编辑站点伪静态,报错 FileNotFoundError: [Errno 2] No such file or directory: 'rewrite/nginx'REQUEST_DATE: 2024-12-02 20:31:14 VERSION: Anolis OS 8.9 x86_64(Py3.7.16) - 9.0.0 REMOTE_ADDR: 10.27.127.86 REQUEST_URI: POST /site?action=GetRewriteListREQUEST_FORM: {'siteName': '10.10.8.95'} USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2439, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2386, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/panelSite.py", line 5043, in GetRewriteList for ds in os.listdir('rewrite/' + ws):FileNotFoundError: [Errno 2] No such file or directory: 'rewrite/nginx'
相关截图(日志、错误):
|