Ubuntu/nginx: Configuration to send request to another server by servername

upstream newserver { server 172.16.0.1:80; # this is new server, by IP address } server { listen 80; server_name subdomain.site.com; location / { proxy_set_header Host $host; proxy_pass http://newserver; } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.