Nginx 404 Not found on Linux Fedora

458 Views Asked by At

I'm trying to host my laravel project in Fedora 20 64 bits

I've install everything :

  • My SQL : 15.1
  • NGINX : 1.4.7
  • PHP : 5.5.26
  • and other small things as usall

My portal keep showing

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;
        }


}

Did I forget to set anything here in the Nginx config ?


Folder Detail

drw-r--r--.  12 root root  4096 Jan 21 17:13 my-site

Owner of Web Server

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

0

There are 0 best solutions below