The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache mod_userdir Tweak

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

  1. Serra

    Serra Well-Known Member

    Joined:
    Oct 27, 2005
    Messages:
    213
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
  3. patchwork

    patchwork Well-Known Member

    Joined:
    Nov 2, 2001
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
Loading...

Share This Page