[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

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

Posted on 2004-10-28
2
Medium Priority
?
195 Views
Last Modified: 2010-03-04
Hi,

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?

Best,
Ella

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

Best,
ELLA




0
Comment
Question by:ellaspeed
2 Comments
 
LVL 3

Accepted Solution

by:
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
#</VirtualHost>

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?

CBozeman
0
 
LVL 1

Author Comment

by:ellaspeed
ID: 12440719
CBozeman,

That did the trick! Thanks...

ES

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

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses
Course of the Month8 days, left to enroll

607 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