Multiple subdomains pointing to the same folder, but keeping the URL

Is it possible to configure two subdomains and point them to the same folder, but save the URL when accessing the site?

I have domains, one for business and one private, for example:

  • private.tld
  • business.tld

And I created two such subdomains:

  • dev.private.tld
  • dev.business.tld

    dev = development: Here I test new things and where I present / demonstrate ready-made modules.

Since they are both mine, I only need one place for this. But when I communicate, I want to give the user an idea that they are either in my private or commercial sphere.

All domains are on the same host, and they are both additional domains for this account.

Does anyone know how to make something like this script work?

№ 1: ; , - ? (@work ) ...

+3
1

.

VirtualHosts , .

NGiNX, , http://wiki.nginx.org/ServerBlockExample

server_name http://nginx.org/en/docs/http/server_names.html

-: nginx.com/resources/admin-guide/reverse-proxy/ ( ..)

0

All Articles