|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-16 00:06 UTC] nbari at dalmp dot com
[2012-01-16 00:06 UTC] nbari at dalmp dot com
-Status: Open
+Status: Closed
[2012-01-16 21:52 UTC] dmilith at gmail dot com
[2012-01-16 21:56 UTC] fat@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
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.