0

I have two web servers with different domain and only one public IP. I found that I can multi domain in the same IP and same server as bellow, but I would to open the website depending on the domain. I tried

server {
    listen       80;
    server_name  first.domain.com;
    return 301 http://192.168.1.10;
}

but this configuration change the url to http://192.168.1.10 ! I want to see the https://first.domain.com/request rather than http://192.168.1.10/request

2

0

You must log in to answer this question.

Browse other questions tagged .