Nginx serving wrong site

Francis Daly francis at daoine.org
Mon Jan 8 14:28:54 UTC 2024


On Mon, Jan 08, 2024 at 09:13:38AM -0500, James Read wrote:

Hi there,

> I literally copied a working configuration. The only changes I made were
> the name of the server and the root to find the files to be served.

If you're not going to show a configuration, then anyone who might be
able to help will be reduced to guessing.

So I'm going to guess that your "server_name" line is of the
form "www.example.com"; and your browser is instead accessing
http://example.com; and nginx is returning the content of the
default_server for that ip:port instead of this server.

https://nginx.org/en/docs/http/request_processing.html

Cheers,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list