How do I setup http://IPofserver/~username -> user's website?

iHost.net.nz

Well-Known Member
Aug 6, 2004
68
0
156
Hi,

I recently brought a new server..

Just wondering why I cannot access all user's websites using the IP then ~username? (without the / ?)

For example, I am hosting someone called albahost..

Their URL for their site (before propogation) is:
http://208.53.138.36/~albahost/

Although it works.. how come http://208.53.138.36/~albahost doesnt work? :confused:

Any help would be appreciated..

Looks like a Apache issue?

Thanks :D
 

l3ean

Registered
Nov 23, 2004
4
0
151
Security

Make sure you add the line UserDir disabled Root like:

<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
</IfModule>

This prevents accessing the root's home using serverip/~root
 

webits

Well-Known Member
May 15, 2004
114
0
166
Tweak Security

Try the following go to your
Root WHM

go to Tweak Security

then mod_userdir Tweak


there might be your problem :)
 

Jas0n

Registered
Jun 9, 2005
3
0
151
I had the same problem. For others who have the same, I fixed it by changing UseCanonicalName to off in httpd.conf.

UseCanonicalName Off