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;
        }
        
    }


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

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试

关闭