WHM, Cpanel, wildcards, and a permanant change to httpd.conf


New Member
I'm trying to set up Wordpress for multiple site support. I've gotten wordpress itself configured correctly, and I even got as far as adding a * subdomain wildcard reference in WHM.

However, all the wildcard subdomains point at a default Apache start page. The tutorials I've seen all make it pretty clear that I need to add a new Virtual Host entry to my httpd.conf file. However, a number of them also make it clear that changes to the httpd.conf file won't stick around, as they'll be overwritten by WHM and Cpanel.

Is there a way to get the two to play nice with each other? Help a noob out, I'm fairly sure I'm missing something painfully obvious.
Hello dlongwing,

First off let me preface this with the fact that I have not done anything with wildcard domains. However I have made modifications to the standard httpd.conf file using the include files and after every update I have to redo the httpd.conf change that I make (for the error page which itself causes errors).

At the bottom of the cPanel httpd.conf file it points you to a couple of include files:

Include "/usr/local/apache/conf/includes/post_virtualhost_global.conf"
Include "/usr/local/apache/conf/includes/post_virtualhost_2.conf"

Both of those files are parsed after all the other virtualhost containers. So my guess is that one of those is where you will want to put your custom directive. Which one? I don't think it really matters but I would put it in the post_virtualhost_2.conf.

I also found cPanel's page on changes contained in a virtualhost directive which you should take a look at as it will tell you how to test your custom include and it will also tell you how to work around the wildcard as you cannot put an asterisk directly into the virtualhost directive.

Sorry I could not be more help but hopefully that will get you pointed in the right direction.

Please let us know how it goes!
[FONT=&quot]Hey dlongwing, I read about your problem. What is the status on the issue now? Did you get the problem resolved? It’s been long time after you have posted your question over here. I would also like to know more about it. Please post it here what is going on?[/FONT][FONT=&quot]