Skip to main content

How to change site visible when WHM hostname is opened in web browser?

Comments

9 comments

  • cPanelMichael
    Hello, This is discussed on the following thread: Hostname goes to Default Web Page Thank you.
    0
  • postcd
    @Michael thx for a reply on that page i found this post of yours, it worked, BUT i would like not to "hardcode" IP into the configuration as IP may change. How can i do it? Also i wish you can reply also regarding the issue (i described above) where old IP was not replaced by new in httpd.conf
    0
  • cPanelMichael
    Hello, How do you plan on making a change to the IP address? It should be replaced with the new IP address automatically if you use "WHM >> IP Migration Wizard" when making the change. Regarding the old IP address, did you take any steps to remove the old IP address from the server? Does it exist in the /etc/ips file, or within any files under the /var/cpanel/userdata/$username/ directories? Thank you.
    0
  • postcd
    Thx, i just changed IP in "Basic cPanel & WHM Setup" and then did "Multi Account Functions" > Change Multiple site's IP addresses So as you suggested now i ran that "IP Migration Wizard". It completed without error: Switching domain forwarder ip...Done Merging httpd.conf ....Done Updating cPanel userdata....... Done Updating ssl domains.... Done Apache Web Server...Apache successfully restarted....Done Updating cPanel users files..Done. Updating userdata cache.... Done. Your config files have been updated. Press continue to update DNS entries... The DNS migration has been completed on this server. Once the DNS changes have propagated, you can complete the migration by "Clicking Here" --- and i have not yet clicked that button
    Old IPs in /usr/local/apache/conf/httpd.conf was replaced by new, but it is there twice on many lines: I think it may be result that i ran this Wizard while cpanels had already been assigned new IP (by doing mentioned "Change multiple site's IP addresses" from within WHM). Is that problem? If yes, how should i fix that? Is enough to do replacement just in this file or fix in WHM anyhow? PS: shouldn't cPanel try to configure Wizard so this do not happen? Update: i clicked button to finish migration and after it restarted apache, all sites was showing Error 500, then when i run "/scripts/rebuildhttpdconf" from within command line and restarting apache (service httpd restart), sites started working again. Yet there is still the question of this topic regarding hostname/WHM IP, how to define custom site/redirect without hardcoding present IP into httpd.conf virtualhost include?
    0
  • cPanelMichael

    Hello, It's normal to see two VirtualHost entries for an IP address. One is for port 80 (Non-SSL), and the other is for port 443 (SSL). Thank you.
    0
  • postcd
    i know, but i think (may be wrong) problem is when IP is two times on same line: GOOD: BAD: there is still the question of this topic regarding hostname/WHM IP, how to define custom site/redirect without hardcoding present IP into httpd.conf virtualhost include?
    0
  • cPanelMichael
    Could you verify if your system uses EasyApache 3, or EasyApache 4? Thank you.
    0
  • postcd
    @cPanelMichael it is using EA3, thx
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here and we will update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.