I
I
IgorVol2016-09-14 13:21:41
Nginx
IgorVol, 2016-09-14 13:21:41

How to answer from different servers for one domain?

Site.com is located on a server with 1.1.1.1
How, where and what to configure so that specific site.com/files/* addresses are opened from server 2.2.2.2?
The files.site.com variant is not suitable, because the simplest SSL was bought.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2016-09-14
@sergey-gornostaev

upstream files_backend {
    server 2.2.2.2;
}

server {
    location /files/ {
        proxy_pass http://files_backend;
    }
}

D
Denis, 2016-09-15
@denis_vl

Install on 1.1.1.1 nginx. And on 2.2.2.2 and 3.3.3.3 apache (or whatever you want). Put the certificate itself to nginx, and register two servers, 2.2.2.2 and 3.3.3.3, with two uplinks.
How, whom and why to steer should be read to the nginx doc. You can't tell this in one post.
Yes. And from nginx to apache, you can send requests over regular http.

D
Denis Verbin, 2016-09-19
@rez0n

Regarding files.site.com - just take a separate certificate, from the same StartSSL or Lets Encrypt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question