<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span id="result_box" class="" lang="en"><span class="hps">I'm trying to</span> <span class="hps">check if</span> <span class="hps">the file exists</span> <span class="hps">before passing it to</span> <span class="hps">fastcgi</span> <span class="hps">but I have not</span> <span class="hps">found</span> <span class="hps alt-edited">as</span><span>.</span><br> <span class="hps">This is</span> <span class="hps">what I'm doing</span><span class="">:</span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span class="tab"> <span class="tab"> <span class="tab"> #if (!-f
$document_root$fastcgi_script_name)</span></span></span><br><span id="result_box" class="" lang="en"><span class=""></span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span id="result_box" class="" lang="en"><span class=""> if (!-f $request_filename) <br> {<br> return 404;<br> }</span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div
style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span id="result_box" class="" lang="en"><span class="hps">I've tried</span> <span class="hps">try_files</span> <span class="hps">but</span> <span class="hps">not</span> <span class="hps">find a way</span><span class="">.</span></span><br><span id="result_box" class="" lang="en"><span class="hps">The</span> <span class="hps">file</span> <span class="hps">is</span> <span class="hps">of the form:</span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span id="result_box" class="" lang="en"><span class="hps">/web/app.php/asd/fgh?ert=xx</span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span id="result_box" class="" lang="en"><span class="hps alt-edited">If it</span> <span class="hps">let</span> <span class="hps">me</span> <span class="hps">pass over</span> <span class="hps">fastcgi</span> <span class="hps">returns the</span> <span class="hps">error:</span></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">No input file specified. <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div></div></body></html>