Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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

Posted on 2004-10-28
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

CBozeman earned 2000 total points
ID: 12435196
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 webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log 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?


Author Comment

ID: 12440719

That did the trick! Thanks...


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


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

604 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