Multiple application server



  • I need one virtual silver.ubuntu c nginx(d) Insufficient annexes()jenkinswikigitlabyoutrack)

    It's all set up, but on its ports.

    The question is whether to build nginx So he's beating these apps not on the port but on the subway:

    jenkins.site.com
    wiki.site.com
    gitlab.site.com -> site.com:8111
    youtrack.site.com -> site.com:8112
    


  • Yes, we can:

    server {
        listen   80;
        server_name gitlab.site.com;
        location / {
                proxy_pass http://site.com:8111/;
                proxy_set_header  X-Real-IP  $remote_addr;
        }
    }
    

    server {
    listen 80;
    server_name youtrack.site.com;
    location / {
    proxy_pass http://site.com:8112/;
    proxy_set_header X-Real-IP $remote_addr;
    }
    }

    Each block http://nginx.org/ru/docs/http/ngx_http_core_module.html#server is responsible for his dominance/standing. Help http://nginx.org/ru/docs/http/server_names.html the server's name. In the case of home/supplying, nginx picking up the block. server with the most appropriate name. And then with help http://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_pass a request for another dominance or, in your case, a port shall be detected.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2