Hi there
try this
http {
upstream myapp1 {
server 192.168.16.201;
server 192.168.16.202;
server 192.168.16.203;
server 192.168.16.204;
}
server {
listen 80;
location / {
proxy_pass http://myapp1/;
proxy_set_header Host $host;
#proxy_redirect https://myapp1/ http://$host/;
}
}
}
Bas
On Sat, Jul 09, 2016 at 11:23:41AM -0400, bai030805 wrote:
Hi there,
> Nginx IP: 192.168.16.206
> Four Web Server: 192.168.16.201-204
Is there one Host: header that you can send in requests to each of the
four web servers, so that they will all return the content that you want?
If so, use that.
Hello!
On 7/9/2016 10:23 PM, bai030805 wrote:
Hi Gurus
My lab environment is
Nginx IP: 192.168.16.206
Four Web Server: 192.168.16.201-204
My nginx.conf is
http {
upstream myapp1 {
server 192.168.16.201;
server 192.168.16.202;
server 192.168.16.203;
server
Hi Gurus
My lab environment is
Nginx IP: 192.168.16.206
Four Web Server: 192.168.16.201-204
My nginx.conf is
http {
upstream myapp1 {
server 192.168.16.201;
server 192.168.16.202;
server 192.168.16.203;
server 192.168.16.204;
}
server {
> Any solution other than switching to
> https://launchpad.net/~nginx/+archive/ubuntu/development (wich scares the
> skull out of me, since this is a production server)?
Use nginx provided binaries if compiling from source is not an option:
http://nginx.org/en/linux_packages.html#mainline
___