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.

ServerAlias using wildcard done right

Discussion in 'General Discussion' started by bigolo, Feb 21, 2011.

  1. bigolo

    bigolo Member

    Joined:
    Dec 5, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I've read a lot of posts on this issue, but I still can't seem to find the correct way.

    I need to add a wildcard for the ServerAlias for some users and I don't want to worry that the some point my change will be overwritten by some script. So if possible, can someone from cPanel staff please provide clear instructions on what needs to be done?

    There is no such option in cPanel interface. I understand one option is to edit /var/cpanel/userdata/*/domain.com and add the wildcard there, but apparently this file is overwritten with the next build.

    Thank you very much for your time.
     
  2. bigolo

    bigolo Member

    Joined:
    Dec 5, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Help? Anyone?
     
  3. cPanelJackson

    cPanelJackson Product Owner - cPanel Security Team
    Staff Member

    Joined:
    Aug 12, 2010
    Messages:
    10
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I am not aware of a specific process that would cause the /var/cpanel/userdata/*/domain.com ServerAlias to be overwritten after the changes have been properly distilled, but you are certainly free to add additional ServerAlias lines via an individual VirtualHost include file:

    /usr/local/apache/conf/userdata/std/2/${USER}/${DOMAIN.COM}/*.conf

    ${USER} should be replaced by the cPanel account's username
    ${DOMAIN} should be replaced by the domain in the VirtualHost
     
Loading...

Share This Page