PDA

Bekijk de volledige versie : busybox_httpd problems



smakofs
08-01-2006, 15:18
Everything's working pretty well with Oleg's firmware 1.9.2.7-7b, but I have 2 problems with busybox_httpd I'm still trying to figure out.

1) Custom mimetypes don't seem to work. Here's my /etc/httpd.conf:

[admin@WL-HDD cgi-bin]$ cat /etc/httpd.conf
A:*
.xml:text/xml
.mp4:video/mp4
[admin@WL-HDD cgi-bin]$

When I download an .xml file, it still returns application/octet-stream as the mime type

2) I can't get cgi-bin shell files to execute in the browser. I created a folder under my home directory called "cgi-bin" (which has execute permissions), and a sample script in there. I can run it fine from telnet, but when I access it via the browser, it gives me a 404. Any thoughts?

FilimoniC
08-01-2006, 15:39
The similar (i think) problem: php doesn't run System() or Exec() command, return value is -1 (minus one)

oleo
09-01-2006, 07:34
[admin@oleo root]$ cat /usr/local/root/httpd.conf
A:*
/cgi-bin:admin:admin
.au:audio/basic
.asp:text/html


And use chmod +x for cgi files!