Home  >  Q&A  >  body text

How to redirect to exact URL when using nginx for load balancing configuration

Like the title, how to redirect to the specified URL when using nginx to configure load balancing, not just the domain name or IP.

upstream site {
    server 8.8.8.8:80;
    //这里如何替换成 8.8.8.8:80/project 这样精确的URL
}

Seek the guidance of the great God.

世界只因有你世界只因有你2714 days ago478

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 17:15:20

    It’s the same, just change the IP to domain name

    reply
    0
  • Cancelreply