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.
chrismakkAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chrismakkConnect With a Mentor Author Commented:
Turns out I was able to edit it through WHM using the following path in WHM.

Service Configuration -> Apache Configuration -> Include Editor -> Pre VirtualHost Include -> All Versions -> pre_virtualhost_global.conf

I added my Vhost details here, saved and restarted Apache and it worked perfectly.

0
 
bevhostCommented:
Can you tell more about what you are trying to do?
What settings do you want to add/change?
0
 
chrismakkAuthor Commented:
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.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
bevhostCommented:
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/
0
 
chrismakkAuthor Commented:
Turns out I was able to edit the include file in httpd.conf through WHM to use my domain as the first vhost. Thanks!
0
 
bevhostCommented:
I don't understand how that is better or different from parking a domain?
0
 
chrismakkAuthor Commented:
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.
0
 
bevhostCommented:
Oh I see, why didn't you say so in your question.  That would have helped a lot.
0
All Courses

From novice to tech pro — start learning today.