Solved

Virtual hosing (config problem of NAMED and APACHE)

Posted on 2000-04-18
5
186 Views
Last Modified: 2013-11-18
Hello Everybody,

 Ihave Linux 6.0 version machine. And I have installed my DNS eserver on one machine and Apache on othere machine.
Now I want to do virtual hosting on Apache. So my main (master) domain is working properly from the begining.
But my virtual hosting are not working by name .
It can work with IP if you type http://IP then it works fine.
Now I registered a domain name on easyspace.com. and I did changes over there I point my DNS server there according to its reqirement.

So what could be the changes i hae to do in my named and Apache.

AS per my knowledge I did changes. But this virtual hosting working only under my main domain!! it doesn`t work through dial-up without giving my DNS entry in machine!!


If i give DNS entry in anybody`s machine it will work fine through names and IP.


So please what could be files and how i have to change that.

PLease reply me as early as possible.

Regards,
Jatin.

0
Comment
Question by:jat
[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
5 Comments
 
LVL 1

Expert Comment

by:andrewljohn70
ID: 2726369
Hi Jat,
if it is working by using the IP address then you can try to update your hosts file in the /etc directory.

There you map the IP with the name of your virtual host.
Try it out and let us know.
0
 

Author Comment

by:jat
ID: 2726563
Hi,
Andrew
that i did already it is not workin that way!!

Give me some other idea.
Jat.
0
 
LVL 17

Expert Comment

by:psimation
ID: 2732436
You will have to give more information.
I don't know exactly what you have done already. Is your httpd.conf file setup correctly {VirtualHost entries}. You also need to point your db files towards the apache pc's IP.
0
 
LVL 1

Expert Comment

by:ttrogden
ID: 2761518
goto /etc/httpd/conf/httpd.conf and scroll to the bottom.  you will need to add the following:

<VirtualHost xxx.xxx.xxx.xxx>                                                  
DocumentRoot /home/virtualdomain name/public_html                                        
ServerName www.virtual domain name.com                                                    
UserDir public_html                                                            
</VirtualHost>
0
 
LVL 2

Accepted Solution

by:
ksemat earned 75 total points
ID: 2762500
make sure your DNS points to your apache server i.e
www.virtualhost IN CNAME name.of .your.apache server
try going to http://www.apache.org/docs/vhosts
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
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

632 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