On 11/15/2011 12:24 PM, Rick Mann wrote:
> On 11 15, 2011, at 12:19 , Scott Ferguson wrote:
>
>> On 11/15/2011 12:04 PM, Rick Mann wrote:
>>> I've been doing this a while now, so I'm not sure what I've overlooked to 
>>> cause this behavior. I'm migrating my server from 4.0.20 on one host to a 
>>> new host on 4.0.23. I'm coping parts of the resin.xml file in chunks, 
>>> verifying each host as I go. The first went smoothly, as did the second. 
>>> When I added the third, it seems to work, but it serves up pages from the 
>>> second. Here are the relevant bits:
>> Resin generally identifies hosts and web-apps uniquely by their root
>> directory. So the second and third<host>  elements which share the
>> root-directory are probably being combined.
> Huh. Shouldn't it use the canonical host name?

It can't, because hosts can be deployed like <host-deploy> and might be 
modified by an explicit <host> (which might set the canonical host name.)

> Anyway, I tried changing the second to be /lz/var/www/org/roderickmann/mgfb, 
> and the web-app inside to point to ".", but it still does the same thing.

Hmm. If you turn on logging for the dispatch/startup, you should see the 
Host[production:host:host-name] which will include the canonical name. 
Can you check that and see which host name is being started?

-- Scott

>> -- Scott
>>
>>> <host host-name="latencyzero.com" 
>>> root-directory="/lz/var/www/com/latencyzero">
>>>     <host-alias-regexp>tycho.latencyzero.com[\.]?</host-alias-regexp>       
>>>                 
>>>     <host-alias-regexp>(www\.)?latencyzero.com[\.]?</host-alias-regexp>     
>>>                 
>>>     <web-app id="/" document-directory="www">
>>> <//>
>>>
>>>
>>> <host host-name="roderickmann.org" 
>>> root-directory="/lz/var/www/org/roderickmann">
>>>     <host-alias-regexp>(www\.)?roderickmann.org[\.]?</host-alias-regexp>    
>>>                 
>>>     <host-alias-regexp>(www\.)?rickmann.org[\.]?</host-alias-regexp>        
>>>                 
>>>     <web-app id="/" document-directory="www">
>>> <//>
>>>
>>> <host host-name="mgfb.roderickmann.org" 
>>> root-directory="/lz/var/www/org/roderickmann">
>>>     <host-alias-regexp>mgfb\.roderickmann.org[\.]?</host-alias-regexp>      
>>>                 
>>>     <host-alias-regexp>blog\.roderickmann.org[\.]?</host-alias-regexp>      
>>>                 
>>>     <web-app id="/" document-directory="mgfb">
>>> <//>
>>>
>>>
>>> Browsing to "http://latencyzero.com/"; gets the first content correctly. 
>>> Browsing to "http://roderickmann.org/"; gets the second content correctly. 
>>> Browsing to "http://mgfb.roderickmann.org/";, however, returns the content 
>>> from the second webapp.
>>>
>>> Any ideas? Thanks!
>>>
>>
>>
>> _______________________________________________
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to