Welcome! Log In Create A New Profile

Advanced

Re: .XML running PHP getting 403

February 22, 2016 08:10AM
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
Subject Author Posted

.XML running PHP getting 403

txt3rob February 22, 2016 06:46AM

Re: .XML running PHP getting 403

Jim Ohlstein February 22, 2016 08:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready