Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    4

    Question How to(correctly) configure custom virtualhost directory structure?

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    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:
    @cpaneltips Addon domains do not need to be sub-directories of your main domain: Addon Domains
    HTH!
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

Similar Threads & Tags
Similar threads

  1. Directory Structure
    By fkatzenb in forum Data Protection
    Replies: 4
    Last Post: 12-30-2009, 07:48 PM
  2. Is the domain directory structure really like this?
    By lyrae in forum New User Questions
    Replies: 3
    Last Post: 04-06-2009, 01:15 AM
  3. Directory Structure?
    By moetus in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-27-2006, 07:23 PM
  4. Subdomain Directory Structure
    By alanpollenz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-01-2004, 01:54 PM
  5. Directory Structure
    By Soheil in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-26-2003, 05:19 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube