Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    8

    Angry ServerAlias using wildcard done right

    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. #2
    Member
    Join Date
    Dec 2004
    Posts
    8

    Default Re: ServerAlias using wildcard done right

    Help? Anyone?

  3. #3
    cPanel Staff cPanelJackson's Avatar
    Join Date
    Aug 2010
    Posts
    7

    Default Re: ServerAlias using wildcard done right

    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
    cPResources: -- cPanelJackson - Nick Jackson, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. Remove ServerAlias from Virtualhost
    By badzilla in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-21-2010, 05:55 PM
  2. ServerAlias for a domain
    By lloyd252 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-24-2010, 01:34 PM
  3. /scripts/park - ServerAlias
    By bignose in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-09-2007, 01:52 PM
  4. missing www serveralias...
    By jmcole in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-30-2005, 10:59 AM
  5. Wildcard ServerAlias
    By mishmash in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-30-2004, 09:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube