Configure Virtual Web Server

Asked

Viewed 61 times

-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 that is running on:

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

for each "new customer" would like to create something like this:

https://consultas.dominiodocliente.com.br

thus accessing the address https://consultas.dominiodocliente.com.br it remains in his subdomain but accessing the files from my server?

Server:
Apache 2.4.34
linux OS

1 answer

1

I think you are confusing concepts because you spoke of DNS and most likely the solution of your problem lies in the configuration of the Web server. But the options are as follows::

1) DNS CNAME - you can register a CNAME.com.br query that points to.meudominio.com.br system. But this procedure will not "hide" the second name, it is more useful when you have an old domain that should be redirected to a new domain.

2) Virtual Web Server. A web server can serve for more than one domain, so in the DNS domain of the client you can configure the machine for the IP of your server, and in the configuration of your web server, you direct according to the name. In this case the.meudominio.com.br system name 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.

  • i think you have given me a north to start, I do not even know how it works the technical part, but I have already made this configuration for this purpose of a web platform that hired (my hosting points to their server where runs the application), however I do not know technically how it works, and as I now have a web system I found interesting, if not to abuse your help, could you refer me articles? or something for research? thank you very much for your attention!

  • You need to specify in the question which web server you use, then someone can expand the answer and put how the configuration would look, or point out a reference.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.