Solved

Virtual hosing (config problem of NAMED and APACHE)

Posted on 2000-04-18
5
180 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa‚Ķ
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

747 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

8 Experts available now in Live!

Get 1:1 Help Now