Skip to main content

How to redirect multiple domains to a single domain ?

Comments

2 comments

  • vanessa
    You can alter the default docroot. To do this: cp /var/cpanel/templates/apache2/main.default /var/cpanel/templates/apache2/main.local
    Edit this: # Default vhost for unbound IPs ServerName [% servername %] DocumentRoot [% serverroot %]/htdocs ServerAdmin [% serveradmin %] [%- IF supported.mod_suphp %] suPHP_UserGroup nobody nobody [%- END %] [%- IF supported.mod_userdir && userdirprotect_enabled && defaultvhost.userdirprotect != '-1' %] UserDir disable [%- IF defaultvhost.userdirprotect != '' %] UserDir enabled [% defaultvhost.userdirprotect %] [%- END -%] [%- END %]
    You'll want to put the docroot of where your site files are located, and adjust the user/group as needed. Then: /scripts/rebuildhttpdconf service httpd restart
    0
  • cPanelMichael
    Hello :) You can also edit the default website page via: "WHM Home " Account Functions " Web Template Editor" Thank you.
    0

Please sign in to leave a comment.