1
I have a private server with fixed IP and I have some websites running on port 80.
Configuration: Debian Linux and Apache
For example, I have two subdomains:
IP_SERVIDOR/site1
IP_SERVIDOR/site2
I registered the two domains in the.br registry: "www.site1.com.br" and "www.site2.com.br".
I am using the DNS services of the.br record itself. I would like to know how I use the DNS Zone Edit to redirect each subdomain. That is to say:
www.site1.com.br -> IP_SERVIDOR/site1
www.site2.com.br -> IP_SERVIDOR/site2
The most I could do is set the type "A" in the DNS zone edition in the.br record.
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 to the root of the folder www
. I believe the rest of the configuration would be on the Apache server.
Could someone help me?
This setting is technology dependent. What server technology are you using?
– Leonel Sanches da Silva
Debian linux usage, apache server and websites are done in PHP. I’m a bit layabout networks and servers. I do not know, for example, if it is correct to call "/site1" and "/site2" subdomain.
– Alan Valejo