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 www.* cannot be removed

Discussion in 'General Discussion' started by itmangeo, Jul 27, 2016.

  1. itmangeo

    itmangeo Registered

    Joined:
    Jul 27, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jeffersonville, IN
    cPanel Access Level:
    Root Administrator
    I have a dedicated server and have root access. The latest cPanel and WHM is installed. Using EasyApache 3.

    I am trying to remove the ServerAlias www.* from several of my subdomains. The only VirtualHost that I want to have a www.* is my main domain. Following the advice in this post: https://forums.cpanel.net/threads/remove-serveralias-from-virtualhost.170106/, I have removed the ServerAlias line from all of the subdomain files in /var/cpanel/userdata/username/ and ran /scripts/rebuildhttpdconf (as root). However, when I check /usr/local/apache/conf/httpd.conf, all of the www.* ServerAlias lines are still there. I've even renamed httpd.conf to confirm it is being recreated, and confirmed with grep that www is not listed in any *.cache files in /var/cpanel/userdata/username/.

    I've checked all of the template and script files that I can track down that are called or used by /scripts/rebuildhttpdconf, but cannot find where www would be added.

    Thank you for any assistance you can provide.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page