Solved

How to add a domain name to the server?

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now