Bug 3739 - DirectoryIndex directive is ignored.
Summary: DirectoryIndex directive is ignored.
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.18.x
Hardware: Other Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 23:50 UTC by nowuseenowudont
Modified: 2011-05-18 00:08 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nowuseenowudont 2011-05-16 23:50:56 UTC
Here's the content of my httpd.conf file.
There is a index.php file at the root of my /www folder.

.asp:text/html
.svg:image/svg+xml
.png:image/png
.gif:image/gif
.jpg:image/jpg
.js:application/x-javascript
*.php:/usr/bin/php
DirectoryIndex index.php

However if I just type http://localhost/, I get a 404 page.
Typing http://localhost/index.php shows me the right page.
Comment 1 Denys Vlasenko 2011-05-18 00:08:28 UTC
DirectoryIndex is apache's directive. busybox httpd is not apache-compatible.

See the top of http://git.busybox.net/busybox/tree/networking/httpd.c for busybox's directives. I think you need I:index.php