Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to add a domain name to the server?

Posted on 2000-05-09
2
Medium Priority
?
238 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 400 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 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