nginx 配置

参考http://www.cnblogs.com/ldj3/p/9298734.html

server { listen 80; server_name foo.com; root /path; index index.html index.htm index.php; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ \.php$ { try_files $uri =404; include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } }

nginx 负载均衡的方法
posted @ 2019-03-13 01:13  圆明猿  阅读(138)  评论(0编辑  收藏  举报