[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How to add a domain name to the server?

Posted on 2000-05-09
2
Medium Priority
?
236 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 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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 …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

650 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