我将WolfCMS从Apache迁移到Nginx。除CKEditor File Manager插件外,其他一切都正常。当打开CKEditor的browser server
框时,我看到No input file specified.
所有其他友好的URL,重写工作正常,没有任何问题。因此,我认为该问题与错误的Nginx配置有关。
这些是 Apache 的重写:
RewriteEngine On
# Set next line to your Wolf CMS root - if not in subdir, then just /
#RewriteBase /wolfcms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Main URL rewriting.
RewriteRule ^(.*)$ index.php?WOLFPAGE=$1 [L,QSA]
对于 Nginx ,文档仅声明:
#Put the following code in your server block:
try_files $uri $uri/ /index.php?WOLFPAGE=$uri&$args;
这就是我所做的。在Nginx中不起作用的文件管理器URL是:
/wolf_ckeditor/filemanager/index.php?type=Images&CKEditor=part_0_content&CKEditorFuncNum=1&langCode=de
=>指向No input file specified.
关于如何修改Nginx配置以使其再次正常运行的任何建议?