server { listen 80; server_name ****.****.net; server_name_in_redirect on; location / { proxy_pass ********** # ip виртуалки1 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } server { listen 80; server_name ****.****.net; server_name_in_redirect on; location / { proxy_pass ********** # ip виртуалки2 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
server { listen 80; ## listen for ipv4 server_name ex-ample.info www.ex-ample.info www.example.info; return 301 ********** } server { listen 80; ## listen for ipv4 server_name example.info; listen 443 ssl http2; #тут немного подрезал... location / { # Redirect everything that isn't a real file to index.php try_files $uri $uri/ /index.php$is_args$args; } #и тут тоже }