Francis Daly
October 09, 2019 04:28AM
On Wed, Oct 09, 2019 at 01:52:11AM -0400, Ken Wright wrote:

Hi there,

> When I enter my domain name in Firefox, I get a 404 status.

Do your nginx logs show this request getting to nginx?

If not, there is something outside of nginx that needs changing first.

Perhaps if you test using "curl", that will eliminate any possibility of
browser-side caching interfering in your tests.

> If I enter
> <domain>.com/index.nginx-debian.html I get the regular nginx welcome
> screen.  Just for fun I copied index.nginx-debian.html to index.html,
> and <domain>.com/index.html gets an "Opening index.php" window.  This
> one in particular has me stumped, because index.html and
> index.nginx-debian.html are identical, but the show different behavior.

If your configuration includes something like

location = /index.html { return 200 "Opening index.php\n"; }

that might explain that difference.

Your configuration probably does not include that location{} block;
but only you know for sure.


On your test system where you can replicate this unwanted behaviour:
how many lines from the config can you remove, and still see the issue?

If you can show a (small) config that someone else can use to see the
issue, perhaps it will be clear what needs to be changed.

Cheers,

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

Odd behavior

Ken Wright October 09, 2019 01:54AM

Re: Odd behavior

pbooth October 09, 2019 03:40AM

Re: Odd behavior

Francis Daly October 09, 2019 04:28AM

Re: Odd behavior

Ken Wright October 09, 2019 07:54PM

Re: Odd behavior

Francis Daly October 10, 2019 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready