Mantis - Resin
Viewing Issue Advanced Details
5275 minor always 11-14-12 07:52 01-17-13 13:45
cowan  
ferg  
normal  
closed 4.0.33  
fixed  
none    
none 4.0.34  
0005275: host-alias and host-alias-regexp ignored with host regexp
With host configured as below, where "foo" is a valid DNS alias for this machine:

    <host regexp="molson" root-directory=".">
      <host-alias>foo</host-alias>
      <web-app id="/webtest" archive-path="/Users/paul/webtest.war"/>
    </host>

Requests to http://foo [^] are handled by the default host until a request is made to http://molson. [^] After this, requests to http://foo [^] are then handles by this host. The same occurs for host-alias-regexp.

This does not appear to occur if host uses "id" instead of "regexp".

Rep by R. Mann

Notes
(0006163)
ferg   
01-17-13 13:45   
server/1f62

Note: this is only possible for static regexp patterns. If you have a full regexp, you will need to have a static id to populate first.