Link to home
Start Free TrialLog in
Avatar of chrismakk
chrismakk

asked on

How to Setup the Default VirtualHost in WHM / Cpanel

I'm having an issue with the domain mapping plugin for Wordpress MU and from what everyone is telling me it has to do with my Default VirtualHost setting in apache. Does anyone know how to change the default VirtualHost value by either using WHM or SSH? I've got root access and can edit the conf files but I really have no idea what to edit. IIS/Windows is my specialty so I'm really confused as to what to do.
Avatar of David Beveridge
David Beveridge
Flag of Australia image

Can you tell more about what you are trying to do?
What settings do you want to add/change?
Avatar of chrismakk
chrismakk

ASKER

I'm trying to get the domain mapping plugin to work with my instance on wordpress mu. It will basically allow the user to use www.domain.com instead of subdomain.mysite.com

Basically an end user will have to edit their A records to have their domain name point to our server. When the request comes to our server my instance of wordpress mu knows how to route it.

The problem is I don't think the instance of MU is setup as the default virtual host so when the domain comes in it doesn't hit that directory. It points to another random directory and shows a random default page from cpanel.
There is a function in WHM (and cPanel if permitted) to Park or Addon a domain.
Park a domain makes an alias for another domain onto the same folder, so both are served from public_html folder.

Not to be confused with addon domains. which goes to a subfolder. public_html/newdomain/
Turns out I was able to edit the include file in httpd.conf through WHM to use my domain as the first vhost. Thanks!
ASKER CERTIFIED SOLUTION
Avatar of chrismakk
chrismakk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I don't understand how that is better or different from parking a domain?
I'm running a blog site with over 10,000 blogs. If 10% (1,000 blogs) of them decide they want to use their own domains I would have to manually park their domain through cpanel, pretty much making the domain mapping plugin useless. Now that directory is the default vhost for any unknown domains coming in and the domain mapping plugin knows how to route. It basically automates the whole process for me.
Oh I see, why didn't you say so in your question.  That would have helped a lot.