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.

How to(correctly) configure custom virtualhost directory structure?

Discussion in 'General Discussion' started by tarasm, Sep 22, 2010.

  1. tarasm

    tarasm Registered

    Joined:
    Sep 21, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    By default, subdomains and/or add-on domains get a sub-directory in public_html, so, when test.example.com subdomain is added, the directory structure looks like this: ~/public_html/test

    I'm trying to configure my cpanel virtualhost configuration in a slightly different layout.

    I would like for each subdomain and/or add-on domain to have a directory inside of ~/sites/, so the previous example would have directory structure of ~/sites/test.example.com with document root in ~/sites/test.example.com/html.

    What is the proper way of configuring this?

    From the looks of it, I can cause something similar to happen by modifying the userdata files, but I was wandering if there is some place for the default values of the userdata files? Or if there is another, better, way to do this?

    Thank you,
    Taras
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I hope you don't mind me answering this with a quote, but I think it's one that'll be helpful to you.

    From our friends on Twitter:
    HTH!
     
Loading...

Share This Page