Solved

Virtual hosing (config problem of NAMED and APACHE)

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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é.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

820 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