kaylio 2015-06-04 13:35 采纳率: 0%
浏览 1555
已结题

配置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;
        }
  • 写回答

4条回答 默认 最新

  • 荏苒时光 2015-06-04 13:48
    关注

    不懂啊,大哥找大神啊,或者QQ之类

    评论

报告相同问题?