Server Ignoramus needs someone to answer question as though they were giving grandma instructions


It is true. I cannot SSH in to my server and can only fumble through Webmin. This is what I need to do:

I have 6 domains on 1 IP address. I added the sixth domain tonight. I want to make this sixth domain the default domain for the IP address so when you type in the IP, that domain comes up. Right now the default domain is the first domain I set up at this IP back in February.

So, I HAVE TO DO THIS IN WEBMIN and need a literal step by step for an idiot.

This is what I found from searching around: I have heard "the default domain is strictly dependant on the order the virtual host blocks are setup in" which I guess means that the first domain on the IP becomes the default domain.

Someone told me to do this:
In Webmin--
1. click on servers and
2. click on apache webserver and then
3. edit config files.
4. scroll down to the end of the apache config file to the virtual host directives and find the domain in question.
5. cut and paste the domain ahead of the virtual host block that contains the current default domain.

But this scared me when I got there. IS THERE AN EASIER WAY?


p.s. my question is not literally IS THERE AN EASIER WAY, but PLEASE help me with an exact step by step using Webmin on how to make a new domain added to an IP the default domain of that IP ahead of all the earlier domains. :)


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.

First of all, save a backup of your apache config file.  You can do this by copying it out of the edit config file section of webmin or better yet goto File Manager on webmin if it is available to you and view/save the file that way.

This is what I found in my apache config comments:
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#<VirtualHost *>
#    ServerAdmin
#    DocumentRoot /www/docs/
#    ServerName
#    ErrorLog logs/
#    CustomLog logs/ common

So add this to your config file before any other VirtualHost entries, uncommented, with proper parameters changed.

Is your first domain setup as a VirtualHost or in the main config og the apache file?


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
ellaspeedAuthor Commented:

That did the trick! Thanks...


 p.s. the first domain on this IP was a virtual host.

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
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.