tomcat nginx 反向代理
安装nginx
yum直接安装
yum install nginx –y
也可以编译安装
这是用编译安装,新手可以用yum安装
配置文件在 /etc/nginx/conf/nginx.conf目录下
修改nginx配置文件
????upstream web_pools {
????????server 10.0.0.17:8081;
????????server 10.0.0.17:8082;
????server {
????????listen 80;
????????server_name localhost;
????????location / {
????????????root html;
????????????index index.jsp index.html index.htm;
????????????proxy_pass http://web_pools;
}
添加 地址池
访问nginx服务器
可以访问!
反向代理配置完成
Tomcat ngxin 反向代理
原文:http://www.cnblogs.com/jksbaduen/p/7900641.html