Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    505

    Tweak mod_userdir Security

    mod_userdir Protection:
    Apache's mod_userdir allows users to view their sites by entering a tilde(~) and their username as the uri on a specific host. For example http://test.cpanel.net/~fred/ will bring up the user fred's domain. The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under (in this case test.cpanel.net). mod_userdir protection prevents this from happening. You may however want to disable it on specific virtual hosts (generally shared ssl hosts.)

    We have enabled mod_userdir Protection for all our users but some our clients want to view their website via For example http://test.cpanel.net/~fred/

    in this section there is mentioned that You may however want to disable it on specific virtual hosts (generally shared ssl hosts.)

    but when i select a domain which i want to disable mod_userdir Protection & then ticked marked on Exclude Protection check box then i have restarted apache web server but still i am unable to view selected domain via IP based

    now please tell what i m doing wrong ??

    Please see attachment for further clarification
    Attached Thumbnails Attached Thumbnails mod_userdir Security.JPG  

  2. #2
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    219
    as linux-engineer above mentioned, sometimes cPanel doesn't necessarily update the main apache config in the way that it should.

    You've got a couple of different options here, but really you're looking for easyapache on cPanel.

    From a root command prompt, you can do '/scripts/easyapache', select 'last known build', and hit next until you start to see it grabbing source and compiling it. This will take a bit of time and make sure you don't close the terminal while you do this.

    From WHM scroll down to "Software" and click "Update Apache", this is just a web frontend for the script I mentioned above. Select last known good config, don't change any options and walk it through by clicking "next" until it rebuilds itself.

    After this, apache should be fully sorted out.

  3. #3
    Join Date
    Aug 2008
    Posts
    505
    I have disabled this function though i am getting below error

    404 Not Found

    The server can not find the requested page:

    75.96.11.154/~ashbourne/ (port 80)

    Please forward this error screen to 65.98.11.154's WebMaster.
    Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Server at 75.96.11.154 Port 80

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •