Skip to main content

Server IP Address

Comments

4 comments

  • cPanelMichael
    Hello :) Is this a dedicated IP address or is it the main shared IP address of the server? If it's the main shared IP address, then you should be able to ensure the default VirtualHost entry is the first one that appears for the main shared IP address with the following command: /scripts/rebuildhttpdconf
    Thank you.
    0
  • anoop0509
    Hello It is a Shared IP address. how do I ensure that default entry is for the server hostname instead of client site. Do I manually put the entry in httpd.conf ? and then run the rebuild script ? Anoop
    0
  • vanessa
    There are a few ways to do this, but what I see most of my clients doing is as followings: cd /var/cpanel/templates/apache2/ cp main.default main.local
    Then edit the default vhost entry in main.local to point to the documentroot of the website you want it to load. You'll recognize it because it points to /usr/local/apache/htdocs. Make sure to change the user/group in that entry too. Then: /scripts/rebuildhttpdconf service httpd restart
    You don't want to edit httpd.conf manually because your changes will be overwritten during cPanel updates.
    0
  • anoop0509
    thanks, the solution worked properly.
    0

Please sign in to leave a comment.