萌嘟嘟按照以往的经验再新环境下安装drupal7,下方时lnmp1.3一键包下的vhost配置

location ~ '\.php$|^/update.php' {
        fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
        # Security note: If you're running a version of PHP older than the
        # latest 5.3, you should have "cgi.fix_pathinfo = 0;" in php.ini.
        # See https://serverfault.com/q/627903/94922 for details.
        include fastcgi_params;
        # Block httpoxy attacks. See https://httpoxy.org/.
        fastcgi_param HTTP_PROXY "";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param QUERY_STRING $query_string;
        fastcgi_intercept_errors on;
        # PHP 5 socket location.
        #fastcgi_pass unix:/var/run/php5-fpm.sock;
        # PHP 7 socket location.
        # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
          fastcgi_pass  unix:/tmp/php-cgi.sock;
    }

重启nginx后访问后台的Home » Administration » Configuration » Clean URLs,点击button却提示The clean URL test failed.难道是出bug了,还是我vhost配置不对了?结果都不是。

Your url at the clean url page should be;
https://www.your-site.com/?q=admin/config/search/clean-urls
So edit it and change it to;
https://www.your-site.com/admin/config/search/clean-urls
Now you should see the enable clean url button.Enable it and get yourself a cup of coffee.
Hope that does the trick.