Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

DocumentRoot Suggestions?

Discussion in 'General Discussion' started by fkatzenb, Sep 19, 2010.

  1. fkatzenb

    fkatzenb Well-Known Member

    Joined:
    Sep 23, 2009
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Lusby, Maryland, United States
    cPanel Access Level:
    Root Administrator
    Folks,
    I am having an issue with setting up joomla into a virtual directory.

    I want http://www.mydomain.com/ to act as if someone went to http://www.mydomain.com/joomla. I did the following:

    Code:
    /usr/local/apache/conf/userdata/std/2/myaccount/mydomain.com/extra.conf
    ServerName www.mydomain.com
    DocumentRoot /home/myaccount/www/joomla
    So this obviously overwrote httpd.conf and http://mydomain.com doesn't work.

    Code:
    /usr/local/apache/conf/userdata/std/2/myaccount/mydomain.com/extra.conf
    ServerName mydomain.com
    ServerAlias www.mydomain.com
    DocumentRoot /home/myaccount/www/joomla
    However this does not work either. Then I realized that files or directories within the original DocumentRoot of /home/myaccount/www/

    Suggestions?

    Thanks,
    Frank
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,576
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Why not use the Redirect Tool in the accounts cPanel, instead?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. fkatzenb

    fkatzenb Well-Known Member

    Joined:
    Sep 23, 2009
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Lusby, Maryland, United States
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,576
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hmm, a bit early for me here, but the /www/ you have in your edit should not be needed, it's actually public_html.

    I'm not sure how you'll get 2 doc roots here doing what you'd like to do.

    In other words, when I go to yourdomain.com you want me to actually be sent to yourdomain.com/joomla/ but you want it to appear to be yourdomain.com, is that right?

    Whats the URL for the second doc root hoping to be?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice