I have a WHM/cpanel server with about 200 sites on it. Most sites have a dedicated ip (about 100 of them) The other sites are on a shared ip.

The dedicated sites can be accseed by the ip address eg, http://123.123.123.123.

Is there a way to set up a mass redirect so that every site on a dedicated ip gets it's ip address redirected to the domain. E.g just make the default behavior of the web server to redirect an IP to the corresponding domain.

I know you can do this for each site via .htaccess or apache config file, but I want to avoid having to modify 100 sites, and have to do it again every time i create a new account.

link|improve this question
In all my cPanel servers, the dedicate IP automatically redirects to the corrisponding domain without any particular config. Which WHM version are you using? – MrShunz Mar 6 '11 at 11:20
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.