Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Question Apache mod_userdir Tweak Single User

    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?
    ULTRA Website Hosting - 8 Years Hosting
    Shared | Reseller | Dedicated | Colocation

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Solokron View Post
    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?
    The mod_userdir tweak can be done on a per-account basis in the latest versions of cPanel 11.

  3. #3
    Member
    Join Date
    Dec 2005
    Posts
    117

    Question

    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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by nicklas View Post
    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
    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. #5
    Member
    Join Date
    Dec 2005
    Posts
    117

    Default

    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. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by nicklas View Post
    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?
    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. #7
    Member
    Join Date
    Dec 2005
    Posts
    117

    Default

    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. #8
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by nicklas View Post
    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?
    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. #9
    Member
    Join Date
    Nov 2010
    Location
    Mexico
    Posts
    38
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Apache mod_userdir Tweak Single User

    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.
    Last edited by luigidelgado; 05-10-2011 at 03:07 PM.

  10. #10
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    de profundis
    Posts
    5,415
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Apache mod_userdir Tweak Single User

    Please also enable for the "DefaultHost (nobody)" and add user1 there under "Additional Users" field.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Apache mod_userdir Tweak
    By kuyenmotdivad in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 06-18-2011, 03:34 PM
  2. Apache mod_userdir Tweak doesnt work for single site
    By rajguru in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-24-2010, 01:00 AM
  3. Mod_UserDir Tweak
    By PsyberMind in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-16-2010, 08:34 AM
  4. Tweak mod_userdir Security
    By crazyaboutlinux in forum Security
    Replies: 7
    Last Post: 07-06-2010, 01:30 AM
  5. mod_userdir tweak (~user) not working
    By wills in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-31-2005, 03:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube