闲者博客 - 执行
https://bk1314.com/tag/%E6%89%A7%E8%A1%8C/
-
宝塔单网站多PHP执行不同文件
https://bk1314.com/10.html
2022-02-23T16:16:00+08:00
[scode type="green"]下面代码放到配置文件里[/scode] 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;
}
}