Web Hosting Talk







View Full Version : Pointing domin.com to domain2.com/dir/


molsted
06-17-2002, 01:47 PM
Is there a way of changing the root directory of a site?

eg.:
Default: www.domain.com -> /home/sites/www.domain.com

New site: www.domain.com -> /home/sites/www.domain2.com/web/directory

So domain.com would actually be served from domain2.com/directory/ but the URL would NOT change.

molsted

GlideTech
06-17-2002, 05:56 PM
If using apache, change the line in httpd.conf for that virtual host.


DocumentRoot /home/sites/www.domain2.com/web/directory


Hope this helps