0

我正在尝试在 Fedora 20 64 位中托管我的 laravel 项目

我已经安装了所有东西:

  • 我的 SQL:15.1
  • NGINX:1.4.7
  • PHP : 5.5.26
  • 和其他小事一样

我的门户一直显示

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

4

0 回答 0