我正在尝试在Fedora 20 64位中托管我的laravel项目
我安装了所有东西:
我的门户网站一直显示
404 Not found
server {
listen 80;
root /usr/share/nginx/my-site/public;
index index.php index.html index.htm;
location / {
try_files $uri/ $uri /index.php?$query_string;
}
location ~ \.php?$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 300;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+\.php)(.*)$;
#Prevent version info leakage
fastcgi_hide_header X-Powered-By;
proxy_read_timeout 300;
include fastcgi_params;
}
}
我忘了在Nginx配置中设置任何内容吗?
文件夹详情
drw-r--r--. 12 root root 4096 Jan 21 17:13 my-site
Web服务器的所有者
ps aux|grep nginx|grep -v grep
root 92177 0.0 0.2 118484 2140 ? Ss 10:41 0:00 nginx: master process /usr/sbin/nginx
nginx 92178 0.0 0.3 118868 3460 ? S 10:41 0:00 nginx: worker process