Answer the question
In order to leave comments, you need to log in
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
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.
Aside "Virtual host".
For example, here is the Apache documentation http://httpd.apache.org/docs/2.2/vhosts/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question