# Try\_files (source)

**URL:** <https://www.ruby-forum.com/t/try-files-source/238583>\
**Category:** NGINX\
**Created:** [January 17, 2014, 11:40pm UTC](https://www.ruby-forum.com/t/try-files-source/238583 "2014-01-17T23:40:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 17, 2014, 11:40pm UTC](https://www.ruby-forum.com/t/try-files-source/238583/1 "2014-01-17T23:40:18Z")

</div>

In ngx\_http\_core\_try\_files\_phase (ngx\_http\_core\_module.c) I can see how  
$uri  
$uri/ =404 are handled, but for example in;

try\_files /test.html $uri $uri/ =404;

where(or how) is /test.html handled?

Posted at Nginx Forum:

> **[try\_files (source)](https://forum.nginx.org/read.php?2,246577,246577#msg-246577)**
>
> In ngx\_http\_core\_try\_files\_phase (ngx\_http\_core\_module.c) I can see how $uri $uri/ =404 are handled, but for example in; try\_files /test.html $uri $uri/ =404; where(or how) is /test.html handled?
