server_name xcx.com www.xcx.com root /home/code/xcx/; index index.php;
location / { try_files$uri$uri/ /index.php?$args; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location~ \\.php$ { include fastcgi.conf; fastcgi_pass127.0.0.1:9000; }
location~ /\\.(ht|svn|git) { deny all; } }
1
2017/01/0911:47:05 [error] 15600#0: *3811575 directory index of "/usr/share/nginx/html/"is forbidden, client: 116.90.80.160, server: xcx.com, request: "GET / HTTP/1.1", host: “xcx.com"