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

bugs at busybox.net bugs at busybox.net
Mon Mar 5 19:25:13 UTC 2007


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             03-05-2007 02:56 PST
Last Modified:              03-05-2007 11:25 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.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 03-05-07 11:25  
---------------------------------------------------------------------- 
Fixed in revision 18010, thanks 

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                      
03-05-07 02:58  landau         Issue Monitored: landau                      
03-05-07 11:25  vda            Status                   assigned => closed  
03-05-07 11:25  vda            Note Added: 0002211                          
======================================================================




More information about the busybox-cvs mailing list