Configure Virtual Web Server [closed]

-2

How do I set up a subdomain to access the files inside my server over a third-party url?

For example, I have a system running in:

https://sistema.meudominio.com.br/

For each "new client" I would like to create something like this:

https://consultas.dominiodocliente.com.br

In this way accessing the address https://consultas.dominiodocliente.com.br does it remain in his subdomain but accessing the files on my server?

Server:
Apache 2.4.34
SO linux

    
asked by anonymous 01.10.2018 / 01:35

1 answer

1

I think you're confusing concepts because you've talked about DNS and most likely the solution to your problem lies in setting up the Web server. But the options are as follows:

1) DNS CNAME - You can register a CNAME queries.domaindomain.com that point to system.mydomain.com. But this procedure will not "hide" the second name, it is most useful when you have an old domain that should be redirected to a new domain.

2) Virtual Web Server. A Web server can serve more than one domain, so in domain-based DNS you can configure the machine for the IP of your server, and in the configuration of your Web server, you address as the name. In this case the name system.mydomain.com is irrelevant, it is just another domain served by the web server.

Each Web server (NGINX, Apache, etc.) has different configuration for multiple virtual servers.

    
01.10.2018 / 04:33