[BusyBox 0001259]: httpd can run interpreter only for files in /cgi-bin/

bugs at busybox.net bugs at busybox.net
Mon Mar 5 10:56:52 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1259 
====================================================================== 
Reported By:                landau
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1259
Category:                   Networking Support
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             03-05-2007 02:56 PST
Last Modified:              03-05-2007 02:56 PST
====================================================================== 
Summary:                    httpd can run interpreter only for files in
/cgi-bin/
Description: 
If compiled with ENABLE_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR (if not,
the whole issue is not applicable), busybox's httpd executes the specifies
interpreter only if the requested file is in /cgi-bin/.
This behavior is incorrect for many interpreted files, such as PHP.
If I write "*.php:/bin/php" in /etc/httpd.conf, I expect httpd to run
/bin/php on any .php file anywhere in the document-root.
The /cgi-bin/ check is correct for regular CGI scripts.

The attached patch against 1.4.1 fixes the issue by checking whether there
is a configured interpreter for the requested file, and if yes, runs it
ignoring the /cgi-bin/ check.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-05-07 02:56  landau         New Issue                                    
03-05-07 02:56  landau         Status                   new => assigned     
03-05-07 02:56  landau         Assigned To               => BusyBox         
03-05-07 02:56  landau         File Added: httpd.patch                      
======================================================================




More information about the busybox-cvs mailing list