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 Single User

Discussion in 'EasyApache' started by Solokron, Jun 7, 2008.

  1. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    We have a client abusing the temporary address. We are unable to enable Apache mod_userdir Tweak unfortunately due to a sitebuilder. Any ideas how we can prevent the alias on a single or per account basis?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The mod_userdir tweak can be done on a per-account basis in the latest versions of cPanel 11.
     
  3. nicklas

    nicklas Well-Known Member

    Joined:
    Dec 22, 2005
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    How, because I can't get it enabled per account, sadley enough it need to be for the whole server disabled.

    I have, cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Can you clarify your question? Are you asking about disabling mod_userdir for the entire server or how to enable/disable mod_userdir on a per-account basis?
     
  5. nicklas

    nicklas Well-Known Member

    Joined:
    Dec 22, 2005
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Sorry for not being so clear.

    I want one account having this IP/~username working for.
    But it doesn't work like that, I can only get it working when allowing it for the whole server. That is not really a good thing.

    How to get that fixed?
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The mod_userdir protection applies to the username of the domain preceeding /. This means if you go to example.com/~dave (where example is the username for example.com), you need to disable mod_userdir protection for user: example (not dave).

    The mod_userdir protection is in place to prevent many things, one item being bandwidth leeching. So if user dave had a bandwidth intensive website, if they changed their links from their domain to example.net/~dave (where example.net is any domain on the server), the user associated with example.net is penalized with the bandwidth consumption instead of user dave.

    You will only be able to get IP/~username (where IP is a shared IP, thus impossible to associate with a single user) to function if you disable mod_userdir protection for all users.
     
  7. nicklas

    nicklas Well-Known Member

    Joined:
    Dec 22, 2005
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Alright, let's see if I get this in my gray cells.

    To give one user IP/~username access, I need to give the whole server, so all accounts can use this IP/~username access. Nah, that is really weird... as you mentioned before it could be done per user.

    Is there any difference in having a shared IP and a static IP for the hosting package, and what about a reseller account with his own shared IP?

    Please explain ALL other dangerous effects by allowing this, I understand the bandwidth issue, but I really do need to know what else for danger is involved and what to expect when enabling this for the whole server.

    I really want to get the grasp of this.

    Thanks.
     
  8. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Try the following steps:
    1. Access the following menu path: WHM: Main >> Security Center >> Apache mod_userdir Tweak
    2. Tick the check-box labeled Enable mod_userdir Protection
    3. Untick all check-boxes under the column heading Exclude Protection
    4. Locate the virtual host that you wish to use from the list under column heading Host.
    5. Input the desired cPanel account username, or usernames as a space-separated list, under the column heading Additional Users.
    6. Click Save, at the bottom of the page, to submit and finalize changes.
     
  9. luigidelgado

    luigidelgado Well-Known Member

    Joined:
    Nov 6, 2010
    Messages:
    109
    Likes Received:
    2
    Trophy Points:
    16
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not Working for me neither. I have 3 cPanel servers none of them working for this tweak.
    1. I have Enable mod_userdir Protection.
    2. I have Unticked all check-boxes under the column heading Exclude Protection except for the domain I want to enable a temporary access to see its account before migration.
    3. I have Input under Additional Users the desired cPanel account username (EX: if my example.com user is named: user1 y input: user1) . Here in fact the list will show example.com (user1).

    NO LUCK! I still have a green/bluish screen orange letters with 404 Not Found error. Am I missing something here?

    ALL 3 Servers the same, 11.28 completly updated. I've been trying to find a solution for this for about a month havn't find the solution.
     
    #9 luigidelgado, May 10, 2011
    Last edited: May 10, 2011
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please also enable for the "DefaultHost (nobody)" and add user1 there under "Additional Users" field.
     
Loading...

Share This Page