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

Posted on 2004-10-28
Last Modified: 2010-03-04

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. :)


Question by:ellaspeed
    LVL 3

    Accepted Solution

    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?

    LVL 1

    Author Comment


    That did the trick! Thanks...


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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now