0

I installed a new server with nginx and php 7.1. When I want to do a call to myurl.com/page it returns a 404. When I do a call to myurl.com/ everything is fine.

I already added this in my nginx config:

location ~ \.php$ {
            include snippets/fastcgi-php.conf;

    #       # With php7.0-cgi alone:
    #       fastcgi_pass 127.0.0.1:9000;
    #       # With php7.0-fpm:
            fastcgi_pass unix:/run/php/php7.1-fpm.sock;
}
Bart Bergmans
  • 633
  • 1
  • 6
  • 9

1 Answers1

0

Ah, stupid me. I had to add try_files $uri $uri/ /index.php?$query_string; to my nginx config.

Bart Bergmans
  • 633
  • 1
  • 6
  • 9