B
B
byulent2016-03-19 12:49:48
Drupal
byulent, 2016-03-19 12:49:48

Error 404 after installing Drupal 8 on nginx - what is the reason?

After installing Drupal 8, instead of the main page of the site, a 404 error is displayed. I use an nginx server with php-fastcgi. I wrote rewrites in the config:

location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri /index.php?$request_uri $uri/ =404; # For Drupal >= 7
}

Rebooted the server. Reinstalled Drupal. Nothing helps. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
serverkon, 2016-03-24
@servekon

There should also be a line with something like this:
fastcgi_pass phpcgi;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question