location ~ [^/]\.php(/|$)
{
# 默认调用PHP7.2
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi-72.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
# 当url中包含/qy_wmdc/则调用5.6版本
if ($request_uri ~* "/qy_wmdc/"){
fastcgi_pass unix:/tmp/php-cgi-56.sock;
}
}
]]>