Apache mod_userdir Tweak

Serra

Well-Known Member
Oct 27, 2005
258
17
168
Florida
I have Apache mod_userdir Tweak enabled on my server. It comes up as a PCI scan issue if it is disabled. However, for testing, I need to have access to one domain temporarily under http://IP/~user.

If I disable the protection completely, I can see the site using the /~user. If I enable the protection and exclude the user, it doesn't work.

I've checked out the instructions at: Apache mod_userdir Tweak, but they were no help.

What I'm expecting is that with the protection enabled and with the domain check box checked for Exclude, I should be able to visit the domain at http://IP/~user just like the protection was disabled, but for only that domain. It doesn't appear to work that way. What I get is the green WHM 404 screen that says:
Code:
The server can not find the requested page:
xxx.xxx.xx.xx/~username/ (port 80)
What am I doing wrong?

I verified it wasn't an issue with the .htaccess file in the account.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

You have to exclude protection for "DefaultHost (nobody)" if you are accessing the URL directly over the IP address or hostname of the server. You could simply leave the protection enabled and instead modify the hosts file on your local computer so that you can access the domain name directly in your web browser:

hosts (file) - Wikipedia, the free encyclopedia

Thank you.
 

patchwork

Well-Known Member
Nov 2, 2001
95
0
316
I did have the temporary URL's working but for some reason they have stopped working. I have tried various combinations but all I get is a 404 error page now.