# Suppress "no index file" errors when autoindex on

**URL:** <https://www.ruby-forum.com/t/suppress-no-index-file-errors-when-autoindex-on/237563>\
**Category:** NGINX\
**Created:** [November 19, 2013, 3:42pm UTC](https://www.ruby-forum.com/t/suppress-no-index-file-errors-when-autoindex-on/237563 "2013-11-19T15:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [November 19, 2013, 3:42pm UTC](https://www.ruby-forum.com/t/suppress-no-index-file-errors-when-autoindex-on/237563/1 "2013-11-19T15:42:33Z")

</div>

Hello,

Can we suppress errors of the form:

2013/11/19 10:14:58 [error] 21848#0: \*49602  
“/path/to/web/root/DATA/2013/320/index.php” is not found (2: No such  
file or directory), client: ::ffff:xxx.xxx.154.69, server:  
[www.example.com](http://www.example.com), request: “GET /location/path/2013/320/ HTTP/1.1”, host:  
“[www.example.com](http://www.example.com)”

…when Autoindex is on? In these cases, we want clients to browse the  
directory for data and there is simply no index page available.

Please advise.

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![Nikolaos\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@Nikolaos\_M](https://www.ruby-forum.com/u/Nikolaos_M)\
**Post date:** [November 19, 2013, 3:49pm UTC](https://www.ruby-forum.com/t/suppress-no-index-file-errors-when-autoindex-on/237563/2 "2013-11-19T15:49:34Z")

</div>

Hello!

On Tue, Nov 19, 2013 at 04:42:01PM +0200, Nikolaos M. wrote:

> …when Autoindex is on? In these cases, we want clients to browse  
> the directory for data and there is simply no index page available.

Normal use of index files (as per the “index” directive, see  
[Module ngx\_http\_index\_module](http://nginx.org/r/index)) doesn’t cause such error messages to  
appear. Instead, index module is silently skipped, and autoindex  
starts working.

Most likely you are using some rewrite instead, or something like  
this.

–  
Maxim D.  
[http://nginx.org/en/donation.html](http://nginx.org/en/donation.html)

---

<div class="post-metadata">

**Author:** ![Nikolaos\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@Nikolaos\_M](https://www.ruby-forum.com/u/Nikolaos_M)\
**Post date:** [November 19, 2013, 4:16pm UTC](https://www.ruby-forum.com/t/suppress-no-index-file-errors-when-autoindex-on/237563/3 "2013-11-19T16:16:31Z")

</div>

On 19/11/2013 4:49 μμ, Maxim D. wrote:

> Most likely you are using some rewrite instead, or something like  
> this.

Thank you,

In the end, it seems someone was actually trying to enter a wrong URL.

Thanks for the clarifications and sorry for the noise…

Nick
