Hello,
On 2/22/16 6:46 AM, txt3rob wrote:
Hi,
I want a PHP file to have the extension of .xml but when i do the below when
accessing the php file via web browser i get a access denied.
location ~ ^(.+\.xml)(/.*)?$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
do i need to add anything like allow or something to this block?
You can uncomment "security.limit_extensions" in php-fpm.conf (or
whatever your OS uses to configure php-fpm and its pools) and set it
there, like:
security.limit_extensions = .php .xml
--
Jim Ohlstein
"Never argue with a fool, onlookers may not be able to tell the
difference." - Mark Twain
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx