<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 8 Jan 2024, 09:29 Francis Daly, <<a href="mailto:francis@daoine.org">francis@daoine.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Jan 08, 2024 at 09:13:38AM -0500, James Read wrote:<br>
<br>
Hi there,<br>
<br>
> I literally copied a working configuration. The only changes I made were<br>
> the name of the server and the root to find the files to be served.<br>
<br>
If you're not going to show a configuration, then anyone who might be<br>
able to help will be reduced to guessing.<br>
<br>
So I'm going to guess that your "server_name" line is of the<br>
form "<a href="http://www.example.com" rel="noreferrer noreferrer" target="_blank">www.example.com</a>"; and your browser is instead accessing<br>
<a href="http://example.com" rel="noreferrer noreferrer" target="_blank">http://example.com</a>; and nginx is returning the content of the<br>
default_server for that ip:port instead of this server.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">My server_name is of the form "<a href="http://example.com">example.com</a> <a href="http://www.example.com">www.example.com</a>;" so I don't think that is the problem. Could this be anything to do with dns configuration?</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="https://nginx.org/en/docs/http/request_processing.html" rel="noreferrer noreferrer" target="_blank">https://nginx.org/en/docs/http/request_processing.html</a><br>
<br>
Cheers,<br>
<br>
f<br>
-- <br>
Francis Daly <a href="mailto:francis@daoine.org" target="_blank" rel="noreferrer">francis@daoine.org</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank" rel="noreferrer">nginx@nginx.org</a><br>
<a href="https://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer noreferrer" target="_blank">https://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div></div></div>