10
配置nginx别名,帮忙看看哪里错了?
一,不配别名,可以访问
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;
}
kaylio
2015/06/04 13:35- 配置
- nginx
- 点赞
- 收藏
- 回答