upstream {
server 127.0.0.1:4269
server 127.0.0.2:4269
}
Cannot be specified inside server {} blocks. The regular /home/user-data/www/<domain>.conf file is already included inside a server block - that means top-level directives like upstream were impossible until that point.
A new file will be placed at /home/user-data/www/.upstream.conf - anything written there is included before any and all server blocks.
Upstream directives like the following:
Cannot be specified inside
server {}
blocks. The regular/home/user-data/www/<domain>.conf
file is already included inside a server block - that means top-level directives likeupstream
were impossible until that point.A new file will be placed at
/home/user-data/www/.upstream.conf
- anything written there is included before any and all server blocks.