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服务,顺利升级。
更多阅读
- 宇秀下拉 2024-3-27号下拉更新案例
- Babun windows下比cygwin更好的终端shell工具
- windows 10 安装软件时出现740 createProcess错误解决办法
- 鸿蒙是基于安卓或Linux系统开发的吗?一个搞技术的用大家都能懂的方式来谈一下
- electron 报错 Error: Electron failed to install correctly, please delete node_modulees/electron and try installing again
- java 判断对象是否为空 防止出现NullPointerException异常
- ubuntu 14.04 安装openjdk 8(亲测成功)
- java 获取操作系统名称 附源代码
- ubuntu 安装mate桌面环境
- 使wordpress支持自定义类型的特色图像

qq:1535604235