Help - Search - Members - Calendar
Full Version: alias
The Planet Forums > Control Panels > cPanel/WHM
SDavidS
Anyone know how to setup an alias record so I can access my sites prior to dns being updated?

somethign like http://ip/website.com etc...
Geoff Means
Hi

I'm not sure if this is what you are looking for - but it worked for me.

In httpd.conf I commented out UserDir disable and uncommented UserDir public_html (Apache 2, don't know about 1.3):

QUOTE
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable

#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html
</IfModule>


I can now access my sites using http://ip/~username where username is the user "assigned" to the domain of the site I want to look at. The above assumes the web site is stored in /home/username/public_html

HTH
Geoff
Paul
QUOTE (Geoff Means)
In httpd.conf I commented out UserDir disable and uncommented UserDir public_html (Apache 2, don't know about 1.3):
By default that is usually already done (well, on apache 1.3 (I didn't think cpanel worked too well with apache 2 icon_confused.gif ))
So http://ip/~username/ should already work for you. (don't forget the trailing slash, depending on your setup it won't work without it)
SDavidS
QUOTE (Paul)
QUOTE (Geoff Means)
In httpd.conf I commented out UserDir disable and uncommented UserDir public_html (Apache 2, don't know about 1.3):
By default that is usually already done (well, on apache 1.3 (I didn't think cpanel worked too well with apache 2 icon_confused.gif ))
So http://ip/~username/ should already work for you. (don't forget the trailing slash, depending on your setup it won't work without it)

doesn't seem to work...oh updated dns now i'm waiting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.