Apache mod_userdir Tweak - I got 403 Forbidden notice!

calvinphanctt

Active Member
Mar 27, 2007
44
0
156
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
 

24x7ss

Well-Known Member
Sep 30, 2014
272
17
68
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
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.