I have error 404 with nginx?

0 like 0 dislike
15 views
Downloaded the source site for this article https://habrahabr.ru/post/150267/#Result (https://github.com/vitalyswipe/tinymvc/zipball/v0.1)
Tried to put on a local server with nginx and php-fpm
When you try to go to any page except the main out error 404 not found
In the nginx configuration, nothing changed. Config for site:
server { listen 80; listen [::]:80; server_name visit.ru; root /home/evgeniy/mysites/visit.EN; index index.php; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } # pass the PHP scripts to FastCGI server # location ~ \\.php$ { include snippets/fastcgi-php.conf; # # With php-fpm (or other unix sockets): location unix:/var/run/php/php7.0-fpm.sock; # # With php-cgi (or other tcp sockets): # location 127.0.0.1:9000; } # deny access to .htaccess files, if Apache''s document root # human towers with nginx's one # #location ~ /\\.ht { # deny all; #} }
by | 15 views

1 Answer

0 like 0 dislike
try_files $uri $uri/ /index.php?$args;
by
110,608 questions
257,186 answers
0 comments
28,662 users