<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Sorry for my fluffy terminology.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">What I called 'error handler' was the final argument of the try_files directive, the one used if any other one fails to detect a valid file/directory.<br>

<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">We ended concluding that:<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">try_files $uri $uri/; was invalid, looping internally for an infinite amount of time<br>

</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">try_files $uri $uri/ /; was valid<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I still don't get why the first case is invalid, with all the input you provided me with:<br>

</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">The request URI was '/', so $uri = /, thus the first agument of try_files should match the root directory and process it further (finding the index file, etc.).<br>

</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Why hasn't it been the case?<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Otherwise stated: defaulting to '/' in the valid syntax means that both '$uri' and '$uri/' values (both equalling '/' after cleanup of redundant slashes) don't point towards a valid directory. This is obviously wrong, since the root directory exists (and is processed when the fallback to the '/' argument happens).<br>

<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Considering all that, one could wonder why the 1st syntax is invalid.<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">

I hope I clarified my question... It seems simple from my point of view :o\<br></div><div class="gmail_extra"><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></div>