设为首页
收藏本站
切换到宽版
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
论坛
BBS
排行榜
Ranklist
搜索
搜索
热搜:
香港vps
香港VPS
amh
机柜
vps
分销
VPS
域名出售
火车头
云主机
不限流量
香港服务器
美国服务器
香港
全能空间
whmcs
digitalocean
本版
帖子
用户
MJJ论坛
»
论坛
›
主机综合交流
›
美国VPS综合讨论
›
1panel问题
返回列表
查看:
817
|
回复:
1
1panel问题
[复制链接]
goe
goe
当前离线
积分
12519
发表于 2024-5-23 19:07:59
|
显示全部楼层
|
阅读模式
怎么同域名不同目录使用不同php版本
求助巨佬
php70映射服务器7033端口
php74映射服务器7433端口
在配置里a目录使用127.0.0.1:7433可以正常使用
在配置里b目录使用127.0.0.1:7033报错403
好像是php70没有被使用,使用php70容器ip也一样不行。
配置如下:
#主站点php74
location /a {
try_files $uri $uri/ /a/index.php?$query_string;
}
location ~ ^/a/(.*\.php)$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:7433;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
# 子站点 PHP 处理(使用不同的 PHP-FPM 在 127.0.0.1:7033)
location /a/site2 {
alias /www/wwwroot/site2/index;
try_files $uri $uri/ /a/site2/index.php?$query_string;
}
location ~ ^/a/site2/(.*\.php)$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:7033;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
回复
举报
qiuzhi
qiuzhi
当前离线
积分
6579
发表于 2024-5-23 19:10:00
来自手机
|
显示全部楼层
呢买一个专业版,然后提交工单问客服,这里估计解决不了
回复
支持
反对
举报
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
Archiver
|
手机版
|
小黑屋
|
MJJ论坛
Copyright
MJJ论坛
© 2022 All Rights Reserved.
快速回复
返回顶部
返回列表