redirect ip to hostname

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

  1. Nishant patel

    Nishant patel New Member

    Hello,
    I have installed ispconfig panel in ubuntu 18.04.
    I want to redirect ip to hostname on my server.
    ex.
    enter my ip in url-bar "xx2.x1x.78.xxx" then they auto redirect to my hostname "host.myserver.com" .

    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