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.

UserDir for Reseller Domain?

Discussion in 'General Discussion' started by EpicVoyage, Nov 1, 2012.

  1. EpicVoyage

    EpicVoyage Registered

    Joined:
    Nov 1, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey,

    I have root on a WHM server and have created a reseller account. I want to access the public_html folder for that reseller's customers by visiting resellerdomain.com/~username/.

    The "Apache mod_userdir Tweak" is off, so the only UserDir command in /usr/local/apache/conf/httpd.conf is at the top of the file:

    Code:
    UserDir public_html
    I have followed the directions in the docs (here) to add a directive to the <VirtualHost> block for the reseller domain, on both ports 80 and 443. EasyApache uncomments the appropriate include lines when I run "/scripts/ensure_vhost_includes --all-users", so the file locations should be good.

    Inside /usr/local/apache/conf/userdata/std/2/reseller/resellerdomain.com/extra.conf, I have one line:

    Code:
    UserDir public_html
    That seems like it should do the trick, but when I visit http://www.resellerdomain.com/~username/, the browser displays the website for resellerdomain.com.

    The access log for resellerdomain.com shows a 200 message ("OK") for the request, and the /~username/ is finding /index.php without any .htaccess magic.

    There is a similar thread here. What am I missing?

    Sidenote: I realize that the steps above may allow access to any account on the server (if they worked). That is not a huge deal at this point.
     
    #1 EpicVoyage, Nov 1, 2012
    Last edited: Nov 1, 2012
Loading...

Share This Page