[ale] Document Root

I. Herman unicron at madhorizons.com
Tue Mar 28 07:10:01 EST 2006


that's the same as what i have.  i dunno then.   in my example below  
it's fakename, realname too.  i always set up my DNS as hostA.com and  
www.hostA.com is a CNAME.

Good luck, i am out of ideas.


On Mar 28, 2006, at 1:24 AM, Terry Bailey wrote:

>
> In the Apache that I am using it is
>
>          ServerAlias fakename realname
>
> At 12:04 AM 3/28/2006, you wrote:
>
>> Here's what i have for a domain i used to host:
>>
>> <VirtualHost *:80>
>>          DocumentRoot /web1/band
>>          ServerName www.ransomlive.com
>>          ServerAlias www.ransomlive.com ransomlive.com
>>          CustomLog logs/ransom.log combined
>> </VirtualHost>
>>
>>
>>
>> On Mar 27, 2006, at 11:32 PM, Terry Bailey wrote:
>>
>>>
>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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
>




More information about the Ale mailing list