Drupal 8 安裝模塊時報錯

以下是報錯提示:
Installing ubercart
An error has occurred.
Please continue to the error page

An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: /core/authorize.php/core/authorize.php?batch=1&id=2&op=do_nojs&op=do
StatusText: Forbidden
ResponseText: 
403 Forbidden
403 Forbidden
nginx/1.4.4


百度了下什麼可用的資料都沒有,只能再Google下,找到了下面的論壇中的內容:

This is an nginx configuration issue and discussed intensely on this page Yet curiously no solid solution could be offered. Some guy on an other page proposed a solution. I applied that proposed solution and can confirm that in works!

To apply proposed solution go to your nginx configuration file under

/etc/nginx/sites-available/ directory on Ubuntu and add

rewrite ^/core/authorize.php/core/authorize.php(.*)$ /core/authorize.php$1;

just above the

location ~ \..*/.*\.php$ {
    return 403;
}

block. Location does matter!.. Restart your server:

sudo service nginx restart

and that's it. The problem solved!

下面這個人也碰到了一樣的問題,說解決了。

I have similar error, any solution? 
update i just finally fixed it just add this: rewrite ^/core/authorize.php/core/authorize.php(.*)$ /core/authorize.php$1; to my server{} block of my nginx conf

回來我這裏也試試。


I have similar error, any solution? 
update i just finally fixed it just add this: rewrite ^/core/authorize.php/core/authorize.php(.*)$ /core/authorize.php$1; to my server{} block of my nginx conf

發佈了99 篇原創文章 · 獲贊 15 · 訪問量 38萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章