Temporary website url /~username

Shirvo

Registered
Mar 25, 2015
4
0
51
Australia
cPanel Access Level
Root Administrator
Hi All,

I am having a problem with /~username for a temp url for customers.

I am currently transferring my clients over to a new server I have setup. I changed the default ip address from the main server ip to a secondary IP. Then I noticed that when I use the /~username I just get a 404 not found page.

I then changed the default IP address to my main server IP and it worked again... Then I tried again an hour later and it has stopped working.

I have never had this problem with my old server and I need it to work as before I change the nameservers on the domains over to the new server I need to test all the sites to make sure the transferred correctly.

Does anyone have any idea why this is happening. I have restarted all the services and the whole server but that did nothing. I have also tried /~username/ but that didn't do anything.
 

Shirvo

Registered
Mar 25, 2015
4
0
51
Australia
cPanel Access Level
Root Administrator
So I got it fixed, I just compared the two server setups and found that the new server had mod_ruid2 enabled and the old one didn't. I disabled that in the build and it now works.

The problem now is, is it bad to not have mod_ruid2 installed?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
So I got it fixed, I just compared the two server setups and found that the new server had mod_ruid2 enabled and the old one didn't. I disabled that in the build and it now works.

The problem now is, is it bad to not have mod_ruid2 installed?
Hello,

Yes, Mod_Ruid2 is not compatible with Apache Mod_Userdir. This is documented at:

Apache Module: ModRuid2

You may want to keep Mod_Ruid2 and simply edit the hosts file on your computer to point domain names to your server before the DNS propagates instead of using the ~ URL with Apache Mod_Userdir.

Thank you.