Welcome! Log In Create A New Profile

Advanced

Re: Pages under main page not loading with Nginx

Francis Daly
July 20, 2017 05:20PM
On Wed, Jul 19, 2017 at 06:02:16PM -0400, Kayla Manchette wrote:

Hi there,

> I have pointed Nginx at the folder where
> all the files for my website are located, and Nginx will show the
> main page just fine. When I try to go to another page on my website,
> it cannot tell where those files are. I just receive a 404 not found
> error.

What one request do you make that gives a 404?

(It should be in the nginx logs.)

What file on the filesystem do you want nginx to return, instead of
that 404?

> The main page is an html file and the rest are php files. Does that
> have something to do with it?

> location ~ \.php$ {
> fastcgi_pass 127.0.0.1:9000;
> include fastcgi_params;
> }

Does that fastcgi_params file include SCRIPT_FILENAME? If not, you may
need to include some appropriate variant of "fastcgi_param SCRIPT_FILENAME
$request_filename;" within that location{}.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Pages under main page not loading with Nginx

Kayla Manchette July 19, 2017 06:04PM

Re: Pages under main page not loading with Nginx

Francis Daly July 20, 2017 05:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready