OK, I’ve inserted that return into the conf file.  BUT, there’s an error from 
an entry I’ve had in there before of a master error.log.  It says the path 
provided is no such file or directory.  That path is nowhere to be found in 
nginx.conf or alpha.conf.

Something wrong with nginx?  It isn’t reading the conf file.  Reported:

nginx 1.21.0

Cheers, Bee

> On Jun 28, 2021, at 7:27 PM, Sergey A. Osokin <o...@freebsd.org.ru> wrote:
> 
> 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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to