Welcome! Log In Create A New Profile

Advanced

Re: Nginx serving wrong site

James Read
January 08, 2024 09:50AM
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
Subject Author Posted

Nginx serving wrong site

James Read January 08, 2024 08:12AM

Re: Nginx serving wrong site

Francis Daly January 08, 2024 08:22AM

Re: Nginx serving wrong site

James Read January 08, 2024 09:16AM

Re: Nginx serving wrong site

Francis Daly January 08, 2024 09:30AM

Re: Nginx serving wrong site

James Read January 08, 2024 09:50AM

Re: Nginx serving wrong site

Francis Daly January 08, 2024 10:04AM

Re: Nginx serving wrong site

James Read January 08, 2024 11:36AM

Re: Nginx serving wrong site

James Read January 08, 2024 11:50AM

Re: Nginx serving wrong site

Francis Daly January 09, 2024 04:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready