fedora 22上的“404 not found”错误nginx / 1.8.0

我尝试运行已经在Nginx上的Apache服务器上运行的应用程序实际上,这是我第一次使用Nginx服务器

我的问题显示,当我需要访问Nginx Root Dir下的任何应用程序

我得到这个错误The page you are looking for is not found.

我的设置文件/etc/nginx/nginx.conf

 user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; events { worker_connections 1024; } http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; # Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/nginx/conf.d/*.conf; server { listen 80 default_server; listen [::]:80 default_server; server_name localhost; #root /usr/share/nginx/html; root /var/www/nginx/html; index index.php index.html index.htm; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { #try_files $uri $uri/ /index.php; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } } 

注意:我有root dir所有权限和任何应用程序路由redirect工作良好,我可以访问Nginx test.php文件

/etc/php-fpm.d/www.conf也是user = nginx group = nginx

谢谢你的时间 :)