.XML running PHP getting 403

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?

Posted at Nginx Forum:

Hello,

On 2/22/16 6:46 AM, txt3rob wrote:

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 O.

“Never argue with a fool, onlookers may not be able to tell the
difference.” - Mark Twain