Want to put. asmx as. php to execute, the Access denied appears. Error.
Location ~ [^/]\.asmx (/|$)
#location ~ *\. (php|asmx)? $
{
# comment try_files $uri = 404; To enable PathInfo
Try_files $uri = 404;
Fastcgi_pass Unix:/tmp/php-cgi.sock;
Fastcgi_index index.php;
Include fastcgi.conf;
#include pathinfo.conf;
}
Modified:/usr/local/php/etc/php-fpm.conf followed by a line: Security.limit_extensions =. php. asmx. html. js. css. jpg. jpeg. gif. png. M
[Global] pid =/usr/local/php/var/run/php-fpm.pid
Error_log =/usr/local/php/var/log/php-fpm.log
Log_level = Notice
[WWW]
Listen =/tmp/php-cgi.sock
Listen.backlog =-1
Listen.allowed_clients = 127.0.0.1
Listen.owner = www
Listen.group = www
Listen.mode = 0666
user = www
Group = www
PM = dynamic
Pm.max_children = 20
Pm.start_servers = 10
Pm.min_spare_servers = 10
Pm.max_spare_servers = 20
Request_terminate_timeout = 100
Request_slowlog_timeout = 0
Slowlog = Var/log/slow.log
security.limit_extensions =. php. asmx. html. js. css. jpg, JPEG, gif. png. htm
Description: Starting with 5.3.9, the PHP official has added a configuration "Security.limit_extensions", which allows only files with the extension ". php" to be executed by default, causing problems that are not supported by other types of files.