<div dir="ltr">I guess that is an unfortunate accident in this case. But man it was frustrating, I even had some co workers who are nginx experts and they missed it to.<div><br></div><div>It is certainly embarrassing.</div><div><br></div><div>Thanx for your reply.</div><div><br></div><div>Julian</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 26, 2019 at 10:11 AM Francis Daly <<a href="mailto:francis@daoine.org">francis@daoine.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Apr 25, 2019 at 08:08:47PM -0500, Julian Brown wrote:<br>
<br>
Hi there,<br>
<br>
Well done in spotting that -- it has come up before, but obviously wasn't<br>
something that someone noticed quickly enough this time.<br>
<br>
> I finally figured it out, and I cannot believe it passed a syntax checker.<br>
<br>
It passed a syntax check because it is syntactically valid.<br>
<br>
> server {<br>
> server_name <a href="http://learngigs.com" rel="noreferrer" target="_blank">learngigs.com</a> <a href="http://www.learngigs.com" rel="noreferrer" target="_blank">www.learngigs.com</a><br>
> <br>
> listen 443;<br>
> listen [::]:443;<br>
<br>
It is inconvenient in this case; but "server_name" accepts a list<br>
of whitespace-separated arguments. Your "server_name" directive has<br>
four arguments.<br>
<br>
It's not what you intended, but the computer (in general) does not care<br>
what you intended; it cares what you wrote.<br>
<br>
> I did not have a semi colon after the server name directive. The syntax<br>
> checker said it was fine, so I do not know what it was trying to do.<br>
<br>
I suspect that this won't be "fixed", because the amount of special-casing<br>
required in the code to handle it is probably not worth the effort to<br>
anyone to write.<br>
<br>
For example: a week ago, you would have liked if someone had previously<br>
come up with a reliable and obviously-documented way that this specific<br>
problem could be auto-avoided or -alerted. Today, you probably don't<br>
need that work done, because you will remember to check for semi-colon<br>
if you ever see the same problem again.<br>
<br>
Great that you found and fixed the problem in the config!<br>
<br>
Cheers,<br>
<br>
f<br>
-- <br>
Francis Daly <a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>