Hi folks -
Forgive me if this has been answered already; I looked and couldn't find an answer.
I know WHM allows you to have custom VirtualHosts and you're supposed to be able to create your own custom include files so nothing gets overwritten when Apache is rebuilt. I am however, struggling with this and would really appreciate some help.
I transferred from one server to another and assume that, when Apache rebuilt for the first time, it screwed up my original config.
Last night at approximately 4AM, my server started serving web requests out of /var/www/html when accessed by its IP. Requests to the sole domain (by name) I have on the box worked just fine.
I realized what the issue was and manually edited httpd.conf, restarted Apache, found some permissions issue which I corrected and was back up and running.
I know this is only temporary and I want to make it permanent, but I've been struggling all day in how to do this properly. I've followed the (hopefully correct) guide but just can't get it to work. All I want is to have requests to the direct IP of my server *not* point to /var/www/html and instead point elsewhere and have it stick.
What is the syntax I need in my include file to overwrite a default VirtualHost?
Thanks in advance.
Forgive me if this has been answered already; I looked and couldn't find an answer.
I know WHM allows you to have custom VirtualHosts and you're supposed to be able to create your own custom include files so nothing gets overwritten when Apache is rebuilt. I am however, struggling with this and would really appreciate some help.
I transferred from one server to another and assume that, when Apache rebuilt for the first time, it screwed up my original config.
Last night at approximately 4AM, my server started serving web requests out of /var/www/html when accessed by its IP. Requests to the sole domain (by name) I have on the box worked just fine.
I realized what the issue was and manually edited httpd.conf, restarted Apache, found some permissions issue which I corrected and was back up and running.
I know this is only temporary and I want to make it permanent, but I've been struggling all day in how to do this properly. I've followed the (hopefully correct) guide but just can't get it to work. All I want is to have requests to the direct IP of my server *not* point to /var/www/html and instead point elsewhere and have it stick.
What is the syntax I need in my include file to overwrite a default VirtualHost?
Thanks in advance.