Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Make apache redirect ip address to domain

Discussion in 'EasyApache' started by eggbert, May 11, 2011.

  1. eggbert

    eggbert Registered

    Apr 16, 2011
    Likes Received:
    Trophy Points:
    I have many sites set up, each with a dedicated ip. However the sites are all accessible by their ip address E.g displays the same as accessing it via /

    Is there any way I can either make the ip redirect to the domain associated with it, or load the default "apache is working" page?

    I am aware I can set up an htaccess or edit the vhost config file to do this. But I want this to be the default behavior on the server, and not have to do it for 100+ sites, or each time I create a new account.

    As a side note, I think this is happening because I am using godaddy dns for these sites rather than setting up nameservers in cpanel. E.g, when creating an account I select "Use name servers set at registrar" and then point the godaddy @ record to the ip address on the server)

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice