D8 +nginx Error installing anything

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Sakura777's picture

A fresh install of drupal 8, if i try to install any theme i get this error:

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=6&op=do_nojs&op=do
StatusText: Forbidden
ResponseText:
403 Forbidden
403 Forbidden
nginx/1.9.10

I tried to install themes in drupal 7 and it works fine with nginx
I'm using the recomended nginx setup form the nginx website.

I check the previus threads without any luck.

It's a new project so i'm interested in use version 8.

Thank you in advance

Comments

open file nginx.conf (for all

vo.develop's picture

open file nginx.conf (for all sites) or site_name.conf (only current site)
add : rewrite ^/core/authorize.php/core/authorize.php(.)$ /core/authorize.php$1;
ex:
server {
rewrite ^/core/authorize.php/core/authorize.php(.
)$ /core/authorize.php$1;
.........
}

You miss one '*'It should

nexg's picture

You miss one '*'

It should be

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

It works with nginx/1.13.9

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week