nginx下drupal 8升级update.php/selection 错误
2021-05-12 00:30
标签:rup info fastcgi pre spl 停止 request 静态 ror 在drupal 8 伪静态文件中添加几行代码。 完整的rewrite代码如下: 保存后,停止并重新启动nginx服务,顺利升级。 nginx下drupal 8升级update.php/selection 错误 标签:rup info fastcgi pre spl 停止 request 静态 ror 原文地址:https://www.cnblogs.com/kujisa/p/12013215.html
伪静态文件默认地址/usr/local/nginx/conf/rewrite/drupal.conf
if (!-e $request_filename) {
rewrite ^/update.php(.*)$ /update.php?q=$1 last;
rewrite ^/(.*)$ /index.php?q=$1 last;
}
location ~ ^/(index|update)\.php(/|$) {
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_intercept_errors on;
}
ps -ef|grep nginx
kill -quit 进程号
reboot
文章标题:nginx下drupal 8升级update.php/selection 错误
文章链接:http://soscw.com/index.php/essay/84463.html