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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
chrismakkAuthor 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.