[root@localhost ~]# cat /etc/nginx/conf.d/cloudera.conf
server {
listen 7180;
location / {
proxy_pass http://clouderacm;
# May not need or want to set Host. Should default to the above hostname.
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}
upstream clouderacm {
hash $remote_addr consistent;
server cdh-vm.dbaglobe.com:7180;
}
}
No comments:
Post a Comment