yiduzixin@163.com | 发布于 2018-10-19 10:31:01 | 阅读量 83 |
发布于 2018-10-19 10:31:01 |

vim upstream_test.conf

upstream imooc {
	server 116.62.103.228:8001;
	server 116.62.103.228:8002;
	server 116.62.103.228:8003;
}

server {
	listen 80;
	server_name localhost jeson.t.imooc.io;

	access_log /var/log/nginx/test_proxy.access.log main;

	location / {
		proxy_pass http://imooc;
		include proxy_params;
	}

	#error_page 404			/404.html;
	# redirect server error pages to static page /50x.html
	#
	error_page 500 502 503 504 	/50x.html;
	location = /50x.html {
		root /usr/share/nginx/html;
	}
}






















内容更新于: 2018-10-19 10:31:01
链接地址: http://blog.leanote.com/post/yiduzixin@163.com/%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%E5%9B%BE%E8%A7%A3

上一篇: not authorized on admin to execute command(无法删除用户)

下一篇: yum安装nginx

83 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航