nginx 下 drupal 8升级提示 update.php/selection not found
问题如题所述,解决的办法是在drupal 8 伪静态文件中添加几行代码,最终完整的rewrite代码如下:
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;
}
保存后,停止并重新启动nginx服务,顺利升级。
更多阅读
- wordpress获取所在分类的上级父栏目id
- drupal 7判断用户是否已登陆 附代码
- centos 7 将自带的php5.4升级到php5.6(亲测成功)
- 编译c语言源文件为python ctypes可调用的so库文件提高python性能(实例讲解)
- php自己动手实现max,找出数组中最大的值
- 宇秀搜索引擎下拉与相关搜索营销系统格式定制重要说明 从6.473版本开始
- electron 报错 Error: Electron failed to install correctly, please delete node_modulees/electron and try installing again
- pacman 安装软件时不能自动补全(已解决)
- 宇秀下拉 2021-1-3下拉更新案例
- 网址链接有效性批量检测工具 功能建议&bug反馈