Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache mod_userdir Tweak

Discussion in 'EasyApache' started by Serra, Feb 24, 2014.

  1. Serra

    Serra Well-Known Member

    Oct 27, 2005
    Likes Received:
    Trophy Points:
    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:
    The server can not find the requested page: (port 80) 
    What am I doing wrong?

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

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. patchwork

    patchwork Well-Known Member

    Nov 2, 2001
    Likes Received:
    Trophy Points:
    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice