Tuesday, 28 January 2014

Add wildcard DNS entry for newly created accounts


Need to add the wildcard dns entry in the template file: /var/cpanel/templates/apache2_2/vhost.default

[% FOREACH alias IN vhost.serveralias_array -%]
    ServerAlias [% alias %]

ServerAlias *.[% wildcard_safe(vhost.servername) %]

No comments:

Post a Comment