Solved

How to add a domain name to the server?

Posted on 2000-05-09
2
230 Views
Last Modified: 2010-04-20
Hello ..

I have a Dedicated Server using a Redhat linux version 6.1 i have a domain name installed in it ..
the server is away from me .. & i am using a Webmin Version 0.78 for Administration.
I have another domain name .. (ex: xzywx.com) i have register this domain name and have its DNS number to my server.
About the server the company told me that i can have any number of domain names in it. it is a PIII-800,128 ram, 11.6 GB & 30 GB Hard disk.
they told me to add the second domain name (ex: xzywx.com) i should use the Apache Server in the Webmin software then i go to the (Create a New Virtual Server) section ..
i have tried many time but could not do anything .. in the (Create a New Virtual Server) section i have these options:

Create a New Virtual Server
Address () Any ()
Port    () Default () any ()
Document Root ()
Server Name () Automatic ()

Create Button

Note that i have an empty webpage in the folder /home/xzywx/index.htm

How can i add this domain name (ex: xzywx.com) to my Dedicated Server.
If i can have more information on this question please.

Thanks for your help
0
Comment
Question by:mhakim
[X]
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
2 Comments
 
LVL 4

Accepted Solution

by:
kiffney earned 100 total points
ID: 2793288
How do you know it's not working?  Are you restarting Apache when you're done?  And if you're going to test this it will be easier if you do put an index.html in your root directories.

I have no idea about Webmin, but there are basically two ways to create virtual servers in Apache.  One is the non-IP way where you DON'T have to set up a virtual IP address. you just edit httpd.conf and add

<VirtualHost www.yourdomain.com>
    ServerName www.xzywx.com
    DocumentRoot /usr/web/xzywx
</VirtualHost>
replacing yourdomain.com with your real first domain name, and the path with whatever is your real path for that virtual server.  Then restart Apache or at least send it a HUP ('kill -HUP `pidof httpd`').

Then you have to make sure that the DNS setting for www.xyzwx.com points to the same IP address as your original server.

This doesn't work for browsers older than Netscape 2.0 but I don't think there are many of those still around.
0
 

Author Comment

by:mhakim
ID: 2793539
Thanks for the answer.
0

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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