diff --git a/nginx.cfg b/nginx.cfg index fe2c86a..884694d 100644 --- a/nginx.cfg +++ b/nginx.cfg @@ -4,7 +4,11 @@ server { server_name ""; location / { - location ~ \.php$ { + + root /www; + index index.php; + + location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass php:9000;