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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.