zoukankan      html  css  js  c++  java
  • nginx下drupal 8升级update.php/selection 错误

    在drupal 8 伪静态文件中添加几行代码。
    伪静态文件默认地址/usr/local/nginx/conf/rewrite/drupal.conf

    完整的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服务,顺利升级。

    1. 查看nginx进程号
      ps -ef|grep nginx
    2. 终止进程
      kill -quit 进程号
    3. 如果页面无法访问,重启服务器就好。
      reboot
  • 相关阅读:
    2021/6/28
    2021/6/25
    IDEA快捷键
    maven的一些问题
    Maven安装
    2021/6/14
    nmcli 网络管理工具
    linux yum仓库配置
    linux 防火墙selinux ,firewalld, iptables
    linux root密码重置
  • 原文地址:https://www.cnblogs.com/kujisa/p/12013215.html
Copyright © 2011-2022 走看看