I have a private server with fixed IP and I have some sites running on port 80.
Configuration: Linux Debian and Apache
For example, I have two subdomains:
IP_SERVIDOR/site1
IP_SERVIDOR/site2
I registered the two domains in the registry.br: "www.site1.com.br" and "www.site2.com.br".
I am using the DNS services of the own registry.br. I would like to know how to use the DNS zone editing to redirect each subdomain. That is:
www.site1.com.br -> IP_SERVIDOR/site1
www.site2.com.br -> IP_SERVIDOR/site2
The most I can do is to set type "A" in the DNS zone edit in the .br registry.
Para o site1
www.site1.com.br A IP_SERVIDOR
Para o site2
www.site2.com.br A IP_SERVIDOR
That is, both sites will point to the root. In my case they will fall into the root of the www
folder. I believe the rest of the configuration would be on the Apache server.
Could anyone help me?