nginx

server {
        listen 80 ;
        server_name ymf.ifyn.com ;

        # MAMP DOCUMENT_ROOT !! Don't remove this line !!
        root "/Applications/MAMP/htdocs/project";

        access_log /Applications/MAMP/logs/nginx_access.log;
        error_log /Applications/MAMP/logs/nginx_error.log;
        

        location / {
            index index.html index.php;
        }
    
        location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }
        
    }

server {
        listen 80 ;
        server_name ymf.ifyn.top ;

        # MAMP DOCUMENT_ROOT !! Don't remove this line !!
        #root "/Users/yumengfei/YII/basic/web";
        root "/Users/yumengfei/ecshop";

        access_log /Applications/MAMP/logs/nginx_access.log;
        error_log /Applications/MAMP/logs/nginx_error.log;
        

        location / {
            index index.html index.php;
        }
    
        location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }
        
    }


阅读更多
个人分类: 服务器
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭