Skip to main content

Subdomains for all parked domains

Comments

2 comments

  • GoWilkes
    Update: From what I can tell, this should be done by editing httpd.conf; find the VirtualHost for the subdomain that's been created, then add a ServerAlias: ServerName beta.example.com ServerAlias www.beta.example.com # add this ServerAlias beta.parked.com www.beta.parked.com # leave everything else in this section alone
    Then, update /etc/userdomains, adding one line for each new subdomain to the next-to-last line: beta.parked.com: example # where "example" is the main account name beta.parked2.com: example beta.parked3.com: example *: nobody # this is the default last line
    Is there anything else that needs to be done? FWIW, I'm using Redhat Enterprise 5.10 x86_64 standard, WHM 11.40.0 (build 19).
    0
  • cPanelMichael
    Hello :) Please ensure you review the following document regarding changes made within a Virtual Host: EasyApache: Changes Contained Within a VirtualHost Directive This document explains how to ensure changes made to the httpd.conf file are preserved. Thank you.
    0

Please sign in to leave a comment.