[ale] Document Root
Terry Bailey
terry at bitlinx.com
Mon Mar 27 23:32:17 EST 2006
Interesting. ServerAlias cures everything except the server still does not
respond if
hostA.com
is used.
I wonder if I should comment out the original DocumentRoot directive?
At 08:41 PM 3/27/2006, you wrote:
>DNS has to know about each one. Presuming that's working fine, you
>can possibly add a ServerAlias line in the vhost section:
>
>ServerAlias hostA.com www.hostA.com
>
>
>On Mar 27, 2006, at 7:37 PM, Terry Bailey wrote:
>
> >
> > Thanks! Works beautifully.
> >
> > Another question:
> >
> > www.hostA.com was the original web site. Another web site was formed,
> > www.hostB.com. Both work OK. However, if the URL, hostA.com, is
> > typed
> > in, the virtual server will not respond. You have to type in
> > www.hostA.com. Moreover, if you type in hostB.com instead of getting
> > www.hostB.com it is the case that www.hostA.com will load and
> > hostB.com is
> > still showing in the address bar. To get www.hostB.com, you must type
> > www.hostB.com.
> >
> > Each one has it's own virtual host section in httpd.conf.
> >
> > I even tried using the IP address instead of *.
> >
> > This is Apache.
> >
> >
> >
> > At 05:48 PM 3/27/2006, you wrote:
> >
> >> Sure,
> >>
> >> Just add an "alias" section in each virtual host section that
> >> points to
> >> the common area.
> >>
> >> VHost A:
> >> alias /microsoft /var/www/htdocs/borg
> >>
> >> VHost B:
> >> alias /msn /var/www/htdocs/borg
> >>
> >> When someone from www.vhostA.com accesses www.vhostA.com/
> >> microsoft/ they
> >> will be accessing the same content as someone accessing
> >> www.vhostB.com/msn/
> >>
> >> Hth, ;-)
> >>
> >> -Jim P.
> >>
> >> Terry Bailey wrote:
> >>>
> >>> If you are running virtual hosts on a web server where each
> >>> virtual host
> >>> has it's own document root, is it possible to set up a common
> >>> area using
> >>> httpd.conf so that this area can be accessed by all virtual hosts?
> >>>
> >>> Thanks,
> >>>
> >>> Terry Bailey
> >>>
> >>>
> >>> _______________________________________________
> >>> Ale mailing list
> >>> Ale at ale.org
> >>> http://www.ale.org/mailman/listinfo/ale
> >>>
> >> _______________________________________________
> >> Ale mailing list
> >> Ale at ale.org
> >> http://www.ale.org/mailman/listinfo/ale
> >>
> >>
> >>
> >>
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Anti-Virus.
> >> Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date:
> >> 3/26/2006
> >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.1.385 / Virus Database: 268.3.2/293 - Release Date: 3/26/2006
More information about the Ale
mailing list