<div dir="ltr">Hi Dino,<div><br></div><div>I believe you have an unbalanced curly brace somewhere causing the error. </div><div><br></div><div>You should check this in a text editor that can highlight syntax.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 4, 2017 at 3:58 PM, Dino Edwards <span dir="ltr"><<a href="mailto:dino.edwards@mydirectmail.net" target="_blank">dino.edwards@mydirectmail.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> You can't have server {} block outside http {} ( <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#server" rel="noreferrer" target="_blank">http://nginx.org/en/docs/http/<wbr>ngx_http_core_module.html#<wbr>server</a> )<br>
<br>
> So it has to be:<br>
<br>
> http {<br>
> server {<br>
> // whatever goes here<br>
> }<br>
> }<br>
<br>
<br>
</span>That can't be right, because before I used the multiple location directives, I didn't have http and it worked fine. Regardless, I followed your advice and I got the following now:<br>
<br>
nginx: [emerg] "http" directive is not allowed here in /usr/local/nginx/conf/sites-<wbr>enabled/ server.domain.tld -ssl:1<br>
<br>
Thanks in advance<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Anoop P Alias</b> <div><br></div></div></div></div>
</div>