Welcome! Log In Create A New Profile

Advanced

Re: VHost Not Serving

Sergey A. Osokin
June 28, 2021 07:28PM
On Mon, Jun 28, 2021 at 07:20:36PM -0400, BeeRich Lists wrote:
> Ya that’s too many to report. I have a catch-all with *.conf. I can restrict
> it down to that main nginx.conf and the extra VHost.
>
> Same as I posted before. Same result. This has the main two in my nginx.conf,
> and the included one. That last one has its own conf file:
>
> include /opt/homebrew/etc/nginx/servers/alpha.conf;
>
> Cheers, Bee

I can't reproduce the issue locally. Here's the config:

server {
listen 80 default_server;
server_name hq3.local;
return 200 "OK: hq3.local\n";
}

server {
listen 80;
server_name alpha.local;
return 200 "OK: alpha.local\n";
}

And here's the requests:

% curl http://alpha.local
OK: alpha.local
% curl http://hq3.local
OK: hq3.local
% curl http://vp.local
OK: hq3.local

Last site is resolvable, but there's nothing in config about that one.

--
Sergey
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

VHost Not Serving

daBee June 28, 2021 09:54AM

Re: VHost Not Serving

Sergey A. Osokin June 28, 2021 10:22AM

Re: VHost Not Serving

VP Lists June 28, 2021 03:02PM

Re: VHost Not Serving

Sergey A. Osokin June 28, 2021 06:38PM

Re: VHost Not Serving

daBee June 28, 2021 06:56PM

Re: VHost Not Serving

Sergey A. Osokin June 28, 2021 07:10PM

Re: VHost Not Serving

daBee June 28, 2021 07:22PM

Re: VHost Not Serving

Sergey A. Osokin June 28, 2021 07:28PM

Re: VHost Not Serving

daBee June 28, 2021 08:22PM

Re: VHost Not Serving

daBee June 28, 2021 07:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready