M
M
Millerish2016-11-07 18:32:00
linux
Millerish, 2016-11-07 18:32:00

CentOS how to specify subdomain from another server?

Good time of the day!
You need to add a subdomain that will actually be located on another server.
i.e .:
site.com // ip1
sub.site.com // ip2

VirtualHost *:80
ServerName sub.site.com
ServerAlias ​​site.com
DocumentRoot ip2
/VirtualHost

Next do
sudo apachectl restart

But it says to me that the relative path is wrong. What is the right and easiest way to do what I want?
I am not well versed in Linux, but I urgently need to solve a problem on CentOS. Tell.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
oia, 2016-11-07
@Millerish

in the domain control panel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question