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.

use an include file at the following location...

Discussion in 'General Discussion' started by thobarn, Jul 30, 2010.

  1. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    in httpd.conf, after each vhost stanza we are told

    "# To customize this VirtualHost use an include file at the following location..."

    and this is good enough when the directive used in include file is a "last declaration counts" type of directive. So, for example one can overwrite ServerAdmin <email> directive in includes.

    But how one would go about removing a directive altogether, say ServerAlias, using include files?

    It is not fun that with every subdomain has a www ServerAlias is output by the default template. e.g.

    Code:
    ServerAlias www.subdomain.domain.com
    Removing these by customizing vhost template work but I could not get it to work with ssl_vhost templates after much headache. How does everybody else handle this?
     
Loading...

Share This Page