ueditor failed to create directory

The website needs to go online with the rich text editing function. I downloaded the code from Baidu ueditor, version 1.4.3.3. It was initially tested in the root directory of the nginx website, and the function was normal.

 

When it is placed on the virtual host, because thinkphp is used, nginx does the pathinfo filtering function, so when testing, it is necessary to change the name of the php folder to something else, so I changed it to handler.

 

 

Correspondingly, you need to modify ueditor.config.js

serverUrl: URL + "handler/controller.php"

 

 

 

After modification, it can be opened normally, but it keeps prompting that the directory creation failed,

location ~ .+\.php($|/) {
            root    $root;
            fastcgi_pass    unix:/run/php/php7.0-fpm.sock;
            fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
            fastcgi_param    SCRIPT_FILENAME    $root$fastcgi_script_name;
            include        fastcgi_params;
        }

Need to re-fill root according to the virtual host directory, it can work normally now

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327075694&siteId=291194637