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.

-- 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
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to