Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice