From:             
Operating system: FreeBSD / Mac OS
PHP version:      5.3.9
Package:          FPM related
Bug Type:         Bug
Bug description:Access denied. when file extension is .html

Description:
------------
When serving .html files as php an "Access denied." is displayed instead of
the 
properly parsed page.

With php versions <= 5.3.8 the following configuration example works for
nginx

--
server {
  server_name domain.tpl *.domain.tld;
  root   /home/sites/domain.tld/home/html;

  location ~ \.(php|htm|html)$ {
    fastcgi_pass   unix:/tmp/php-fpm.socket;  
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include        fastcgi_params;
  }

}
--

files on /home/sites/domain.tld/home/html are:

http://domain.tld/index.html <--- does not work with php-5.3.9 display an
Access 
denied. 
http://domain.tld/test.php   <--- works 

Expected result:
----------------
properly parse the .html and display the content.

Actual result:
--------------
Access denied.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60763&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60763&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60763&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60763&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60763&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60763&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60763&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60763&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60763&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60763&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60763&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60763&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60763&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60763&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60763&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60763&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60763&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60763&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60763&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60763&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60763&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60763&r=mysqlcfg

Reply via email to