Web Hosting Talk







View Full Version : WHM domain pointers?


ckizer
06-19-2001, 03:41 PM
What would be the best way to point a domain to a certain directory? I have a customer who needs this we have web host manager and cpanel.

Annette
06-19-2001, 04:29 PM
We've found the simplest way to be:

Create a subdomain on the master account with the same name as the folder to which you want the domain pointed.
Park the domain to be pointed on top of that sub.
Done.

The sub won't work properly, but who cares? The pointer will.

Dogma
06-19-2001, 04:41 PM
lol! nice logic. :D

Get-Hosted.com
06-19-2001, 05:53 PM
Actually the sub will work... just isn't needed. :-)

Making the sub just creates an entry in the httpd.conf that directs you to that sub-directory... so if you have access to that you can direct that domain directly to that sub-directory with the httpd.conf

Annette
06-19-2001, 06:11 PM
We've found that over 75% the time, the sub does not work after parking a domain on it. YMMV. The method above is just a quickie way to avoid manual revisions of httpd.conf (manual revisions which could also be done to ensure that both the sub and the pointer work correctly).

Get-Hosted.com
06-19-2001, 06:56 PM
Wow, I wonder why?

Annette
06-19-2001, 06:58 PM
Beats me. With all the garbage that WHM/cPanel puts into the httpd.conf in the first place, I'm surprised that it restarts at all sometimes. :)