一,不配别名,可以访问
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;
}