一,不配别名,可以访问
location ~ /efront/.+\.php {
root /hpe/git_root/lms1.0;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
location /efront {
root /hpe/git_root/lms1.0;
index index.php;
}
二,配了别名的代码
location ~ /eft/.+\.php {
root /hpe/git_root/lms1.0/efront;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
location /eft {
alias /hpe/git_root/lms1.0/efront;
index index.php;
}
不懂啊,大哥找大神啊,或者QQ之类
alias时,访问问eft路径下文件时,去efont目录找,你确定对应关系对了吗
而且你的alias有点不对。efront后面要有/结尾。root可有可无。
不好意思 ,帮不上你的忙 了,想了好久还是想不出