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;

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



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.