Solved

How to add a domain name to the server?

Posted on 2000-05-09
2
229 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
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

808 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