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 - I got 403 Forbidden notice!

Discussion in 'Security' started by calvinphanctt, Nov 26, 2014.

  1. calvinphanctt

    calvinphanctt Active Member

    Joined:
    Mar 27, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Hello everyone,

    How are you doing? I'm running WHM 11.46.0 (build 17) , I want to use http://www.domain1.com/~domain2 , here is what I did:

    In "Apache mod_userdir Tweak", I ticked the "Enable mod_userdir Protection", on the same line of domain1.com (domain1) in the "Additional Users" I input "domain2" for domain2.com

    I expect when I did that, if I type http://www.domain1.com/~domain2 , it will show the website of domain2.com when the DNS is not resolved, but I got 403 Forbidden notice like this:

    Forbidden

    You don't have permission to access /~domain2/public_html/ on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    So, could you show me how to make it work as http://www.domain1.com/~domain2 ?

    Thank you very much !

    Sincerely,
    Calvin
     
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Can you let me know the site you are trying to access using temporary link is wordpress/Joomla site ? If yes then it is not possible to check the site using temp url it will give error.

    If still you want to check that site then add that domin name and server IP in your local machine hosts file so that your local machine will ping that domain to that IP and you can check the site how it look from new server.

    Also, I will suggest you try disabling PHP open_basedir Tweak setting.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page