Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-07-2006, 10:49 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 9

Rep: Reputation: 0
problem with multiple domains in apache server

in my dns server i have a domain . i have subdomains under it , like , etc . the zone file is like this :

server IN A
mail IN A

when i dig them there appears to be no problem.
in the web server conf file i used two different document roots for the subdomains.the sample code is like this :

DocumentRoot /var/www/
DocumentRoot /xyz/

if i browse for iam getting the desired html file , but if i browse for the http test page is being displayed .Please help me solve the problem.
Old 06-07-2006, 11:22 PM   #2
LQ Newbie
Registered: Mar 2006
Location: Australia
Distribution: FC4 & FC5-Various Kernels & Vector Linux
Posts: 11

Rep: Reputation: 0
This works for me

This is how I do it on my server:
I use Dynamic DNS, but that won't matter if dig works fine.

NameVirtualHost *:80

<VirtualHost *:80>
ServerAlias *
DocumentRoot /var/www/prestige

<VirtualHost *:80>
ServerAlias *
DocumentRoot /var/www/ane


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: hosting multiple domains fturcic Linux - Software 1 02-15-2005 05:39 PM
Can I use a single Samba server for multiple domains? help321 Linux - Software 0 08-11-2004 05:20 AM
Apache VirtualHost, multiple domains and subdomains chrisfx Linux - Networking 2 08-10-2004 02:58 PM
Securing Multiple Domains on 1 Server jgillin Linux - Security 1 05-10-2004 06:44 AM
multiple pop domains one 1 server dafi Linux - Networking 0 08-11-2001 05:57 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration