Nginx and drupal



我使用 nginx 运行 drupal 6,但当我运行 mydomain.com/update.php 时,它似乎无法正确完成。我已经调整了配置以运行它,但单击"更新"按钮后没有看到任何结果。它永远不会离开更新页面。这让我相信更新没有发生

我的问题

  • 如何获取更新.php以正确完成。

在我用来设置它以运行 drupal 的 nginx 框架中,包含一个文件,用于设置对更新的访问.php如下所示: 请注意,我暂时删除了任何与 .htaccess 相关的安全性,以便我可以运行更新和/或 cron。

# -*- mode: nginx; mode:autopair; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
### Configuration file for Drupal if you're not using drush to update your site or run cron.
## XMLRPC. Comment out if not enabled.
location = /xmlrpc.php {
    fastcgi_pass phpcgi;
    # To use Apache for serving PHP uncomment the line bellow and
    # comment out the above.
    #proxy_pass http://phpapache;
}
## Restrict cron access to a specific host.
location = /cron.php {
#    ## If not allowed to run cron then issue a 404 and redirect to the
#    ## site root.
#    if ($not_allowed_cron) {
#        return 404 /;
#    }
    fastcgi_pass phpcgi;
#    ## To use Apache for serving PHP uncomment the line bellow and
#    ## comment out the above.
#    #proxy_pass http://phpapache;
}
## Run the update from the web interface with Drupal 7.
location = /authorize.php {
    fastcgi_pass phpcgi;
    ## To use Apache for serving PHP uncomment the line bellow and
    ## comment out the above.
    #proxy_pass http://phpapache;
}
location = /update.php {
    #auth_basic "Restricted Access"; # auth realm
    #auth_basic_user_file .htpasswd-users; # htpasswd file
    fastcgi_pass phpcgi;
    ## To use Apache for serving PHP uncomment the line bellow and
    ## comment out the above.
    #proxy_pass http://phpapache;
}

查看此项目 https://github.com/perusio/drupal-with-nginx

你会在那里找到用于drupal配置的nginx。

最新更新