[TriLUG] Apache serving wrong website

Douglas Ward dward at nccumc.org
Tue Mar 11 11:39:53 EDT 2008


Brian,

Thanks for that information.  I am already running the NameVirtualHost
directive.  I am including the IP address on each line to maintain
compatibility with older browsers.  I'm still stumped.  As far as I can tell
I have apache configured properly...

Douglas

On Tue, Mar 11, 2008 at 11:23 AM, Brian Henning <
Brian.Henning at datadirect.com> wrote:

> >>  DocumentRoot /var/www/sub.domain.org
>
> > I am no expert, but first off I think this path should be a folder not
> a
> > domain name.
>
> I feel fairly confident in assuming that his DocumentRoot really is a
> folder named "/var/www/sub.domain.org"
>
> When I've done Virtual Servers that had the same IP address, I believe I
> had to use the NameVirtualHost directive instead of VirtualHost.  See
>
> http://httpd.apache.org/docs/2.2/vhosts/name-based.html
>
> Cheers and HTH,
> ~Brian
>
>
>
>
> -----Original Message-----
> From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org] On
> Behalf Of Amnon
> Sent: Tuesday, March 11, 2008 11:19 AM
> To: Triangle Linux Users Group General Discussion
> Subject: Re: [TriLUG] Apache serving wrong website
>
> >  DocumentRoot /var/www/sub.domain.org
>
> I am no expert, but first off I think this path should be a folder not a
> domain
> name.
>
> > The server sends all traffic to the main domain website.  I need
> browsers
> > that visit sub.domain.org to be sent to the correct site.  It was my
> > understanding that as long as the sub domain was first in the
> configuration
> > file it would work.  Am I missing something?  Shouldn't apache be able
> to do
> > this?  I need to host both of these sites on the same server.  Any
> advice
> > would be most appreciated.  Thank you!
>
> You probably need to list that sub domain in your dns file for that
> domain.
>
> This is how it is done here.
>
> Shalom Y'all
> Amnon Nissan
>
> Deltaforce
> 919-852-2121
> http://www.deltaforce.net
>
> Host, Computers 2K8
> on 850 The Buzz  (AM 850) in Raleigh NC
> Sundays 8-10am
> http://www.850thebuzz.com/compute/
> Listen Live @ http://www.mainstreamnetwork.com/listen/asx/wrbz.asx
>
> MV stuff are at:
>  http://www.deltaforce.net/deuce/
>  http://www.ncmvpa.com
>
>
> --
> TriLUG mailing list        :
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



More information about the TriLUG mailing list