TechStar1

Member
Jan 5, 2018
7
0
1
USA
cPanel Access Level
Website Owner
Hi I'm being told that if I want to view my domains like this 166.**.80.**8/~fred/
I need to do the below.

I am using WHM
  • CENTOS 6.9
  • v66.0.34
Any idea on how I can accomplish this?

Thanks
Code:
mod_userdir is disabled
Web server processes on this system currently run as the user. For security reasons, the system disabled mod_userdir. Any changes that you make in this interface will not take effect until you enable mod_userdir. To use mod_userdir, you must disable mod_ruid2, mod_itk, and mod_passenger and recompile EasyApache.


Apache’s mod_userdir allows users to view their sites by entering a tilde (~) and their username as the URI on a specific host. For example [B][URL]http://test.cpanel.net/~fred/[/URL][/B] will bring up the user fred’s domain. The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under (in this case test.cpanel.net). mod_userdir protection prevents this from happening. You may however want to disable it on specific virtual hosts (generally shared ssl hosts).
 
Last edited by a moderator:

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Web server processes on this system currently run as the user. For security reasons, the system disabled mod_userdir. Any changes that you make in this interface will not take effect until you enable mod_userdir. To use mod_userdir, you must disable mod_ruid2, mod_itk, and mod_passenger and recompile EasyApache.
You will have to disable the mod_ruid2, mod_itk, and mod_passenger apache module first to have this setting enabled. Execute EasyApache on your server and remove it..

For more detailed information visit the below link:
Apache mod_userdir Tweak - Version 68 Documentation - cPanel Documentation
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Are you saying to modify OUR hosts file?????
Yes, modify it on your computer that is what mentioned, so for your computer alone you can check how the domain looks when pointed to your server.. The link provided by Michael has detailed explanation on how to go about modifying it..
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
However, if I just put the IP address in the browser it should do the same thing right?
Hello @Zardiw,

The website contents will only load when browsing to the IP address when it's a dedicated IP address. If the IP address is configured as a shared IP, then it will display the default website page unless you've configured a specific virtual host as the first entry for that IP address in the Apache configuration file. There's a post with instructions on how to do that at:

Prevent IP browsing as it does with the server's primary IP address

Thank you.