Re: Apache Info


Subject: Re: Apache Info
From: Iain Stevenson (iain@iainstevenson.com)
Date: Tue Feb 05 2002 - 14:38:57 MST


As I understand it .... if apache finds any virtual host definition not to
it's liking and can't work out what to do it defaults to the first
definition ie your first site. I found that the default definition - the
part of httpd.conf outside the virtual host definition - was not always
applied as I thought it should be. The answer was to define an additional
virtual host corresponding to the default.

<VirtualHost w.x.y.com>
        Port 80
        DocumentRoot /home/httpd/html/
</VirtualHost>

  Iain

--On Tuesday, February 5, 2002 4:20 pm -0500 Paul Guba
<gubavision@home.com> wrote:

> Thats good to know because virtual host is where I am having my
> difficulties. I am trying to do name based virtual hosting. Cannot get
> second site to load though. First site loads fine. I am wondering if it
> has to do with the document root. The second site always goes to it.
> Not sure if it is not allowing the virtual hosts document root. On
> Tuesday, February 5, 2002, at 03:38 PM, Iain Stevenson wrote:
>
>>
>> i found "Apache: the definitive guide" a little less than definitive.
>> I have apache set up to run a couple of virtual hosts and SSL. In the
>> process, I hit problems with the setup working OK with Mozilla and not
>> with Explorer - the book was no help at all. It is certainly too brief
>> on virtual hosts.
>>
>> iain
>>
>>
>>
>> --On Tuesday, February 5, 2002 1:13 pm -0700 Keary Suska
>> <hierophant@pcisys.net> wrote:
>>
>>> on 2/5/02 12:44 PM, gubavision@home.com purportedly said:
>>>
>>>> I am looking for a user group for apache similar to this one. I am
>>>> having problems and am looking for a source of info. Checked a lot of
>>>> online docs but still can't solve my problems. Book recomendations
>>>> are
>>>> also exceptable. For some reason it always servers the same page even
>>>> if I choose a different root folder.
>>>>
> Paul Guba
> gubavision@home.com
>>>>
>>>
>>> One of the most concise and clearly written books on Apache I have
>>> seen is
>>> Ralf Engelschall's "Apache Desktop Reference". You may find it a bit
>>> dense, however. There are other decent ones as well, but it's best to
>>> find whatever fits your learning style and experience level. Some
>>> people
>>> like the O'Reilly book ("Apache: the Definitive Guide", I think), but I
>>> didn't find it useful at all. It should be called, "Learning Apache
>>> Configuration by Example". It may simply be that I am not patient
>>> enough
>>> to have to read a whole chapter to determine how a few directives are
>>> used ;-) But you may find it useful.
>>>
>>> Keary Suska
>>> Esoteritech, Inc.
>>> "Leveraging Open Source for a better Internet"
>>>
>>
>>
>



This archive was generated by hypermail 2a24 : Tue Feb 05 2002 - 15:01:16 MST