Nginx serving wrong site

James Read jamesread5737 at gmail.com
Mon Jan 8 14:49:23 UTC 2024


On Mon, 8 Jan 2024, 09:29 Francis Daly, <francis at 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 at daoine.org
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20240108/0a3f0a90/attachment.htm>


More information about the nginx mailing list