On Mon, 8 Jan 2024, 09:29 Francis Daly, <francis@daoine.org> wrote:
> 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.
>
My server_name is of the form "example.com www.example.com;" so I don't
think that is the problem. Could this be anything to do with dns
configuration?
>
> https://nginx.org/en/docs/http/request_processing.html
>
> Cheers,
>
> f
> --
> Francis Daly francis@daoine.org
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx