Hi - I'm hoping that someone can verify the following config will behave as I want. Thanks in advance for the help.
+ setup nginx on lb in front of web01 & web02
+ Objective - have all requests to domain ABC.com served by web01
To achieve this I've setup the following in nginx.conf
upstream webbackend {
server web01
server web02
}
upstream adminbackend {
server web01
}
in conf.d/http.conf
server {
listen 80;
server_name XYZ.com;
location / {
proxy_pass http://webbackend;
}
}
...
server {
listen 80;
server_name ABC.com;
location / {
proxy_pass http://adminbackend;
}
}
Thanks,
Graham