<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">One could imagine a minimal server configured as such:<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">in */nginx/nginx.conf:<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">http {<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
#All default http stuff, like MIME type inclusion, etc.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"> include conf.d/*.conf<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
}<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">in */nginx/conf.d/default.conf<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
server {<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"> listen 80;<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"> index index.html index.htm;<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"> try_files $uri $uri/ /;<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
}<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">However, unless I made some mistake, it seems that such a configuration returns a HTTP 500 error (with a 'too much internal redirection' error).<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br clear="all"></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">Does nginx require any location block at all?<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153);display:inline">Or am I mistaken?<br></div><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div>