Bug 3739

Summary: DirectoryIndex directive is ignored.
Product: Busybox Reporter: nowuseenowudont
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED INVALID    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.18.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

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