redirect ip to hostname

Discussion in 'Installation/Configuration' started by Nishant patel, Dec 10, 2018.

  1. Nishant patel

    Nishant patel New Member

    I have installed ispconfig panel in ubuntu 18.04.
    I want to redirect ip to hostname on my server.
    enter my ip in url-bar "" then they auto redirect to my hostname "" .

    How can i do that?
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You could for example write to /var/www/html/index.html file a HTML redirect to the URL you want. This works on Debian GNU/Linux 9.6 Stretch, should work on Ubuntu also. If not, find out what file is shown to you when IP-address is used in URL, and modify that file to redirect to the domain you want.

Share This Page