Skip to content

iyifei/myfmvc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myfmvc-demo

myfmvc的简单使用demo

nginx 配置

业务系统的配置

server {
    listen       80;
    server_name mvc.myf.cn;
    root /myfmvc-demo/App;
    index index.php index.html index.htm;

    location / {
        if (!-e $request_filename) {
            rewrite  ^(.*)$  /index.php?_url=$1  last;
            break;
        }
    }


    location ~ \.php$ {
        include /usr/local/etc/nginx/fastcgi.conf;
        fastcgi_intercept_errors on;
        fastcgi_pass   127.0.0.1:9000;
    }

}

访问:
http://mvc.myf.cn/index/test
管理后台的配置

server {
    listen       80;
    server_name amvc.myf.cn;
    root /myfmvc-demo/Admin;
    index index.php index.html index.htm;

    location / {
        if (!-e $request_filename) {
            rewrite  ^(.*)$  /index.php?_url=$1  last;
            break;
        }
    }


    location ~ \.php$ {
        include /usr/local/etc/nginx/fastcgi.conf;
        fastcgi_intercept_errors on;
        fastcgi_pass   127.0.0.1:9000;
    }

}

访问:
http://amvc.myf.cn/index/test

About

myfmvc的简单使用demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published