O
O
Ockonal2013-11-15 22:14:22
Apache HTTP Server
Ockonal, 2013-11-15 22:14:22

How to redirect a domain to a folder?

There is a debian server and a domain on godaddy. This domain is directed to the IP address of the server. Everything is working.
Now another domain has appeared, you need to redirect it to some internal folder.
For example, if the first domain points to /var/www, then the second domain must point to /var/www/secondroot.
Is it possible. If possible, in which direction to dig, thanks.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Polishchuk, 2013-11-15
@Ockonal

1. "Park" the domain on the ns server (A record)
2. Set up DNS on "our" server
3. Create a virtual host on the "second" folder
ZY . If it's not clear, I can explain completely.

K
ki10bit, 2013-11-15
@ki10bit

Aside "Virtual host".
For example, here is the Apache documentation http://httpd.apache.org/docs/2.2/vhosts/

V
Vlad Zhivotnev, 2013-11-15
@inkvizitor68sl

https://debian.pro/106 about inputs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question