Re: [Resin-interest] Host Matching and Regular Expressions
Hi Shane, I've added a bug track as http://bugs.caucho.com/view.php?id=2813 and I'll need to look into it more. The priority code is a bit tricky, so it's possible that the aliases aren't getting the right priority. -- Scott On Jul 29, 2008, at 12:05 PM, Shane Cruz wrote: Specific host ids have priority over regexps. So myhost.com should match independent of the order of those two tags. For two regexps, the first one should match. -- Scott Would a host-alias for a specific host ID match before the regexp host? For example, assume this configuration: host id=”myhost.com” host-namemyhost.com/host-name host-aliasalias.myhost.com/host-alias … /host host regexp=([wW]{3}\.)?(.+)\:[0-9]+ host-name${host.regexp[2]}/host-name … /host Our testing is showing that the regexp is actually matching when the virtual host is alias.myhost.com. Do we need to give each alias its own host block in order for it to match before the regexp hosts? Thanks, Shane ___ 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
Re: [Resin-interest] Host Matching and Regular Expressions
On Jul 21, 2008, at 1:03 PM, Shane Cruz wrote: In Resin Pro 3.0 (specifically 3.0.23), what happens if you have two host blocks that both match the virtual host being requested? For example, what would happen if we have a configuration such as this and someone requests myhost.com? host id=”myhost.com” host-namemyhost.com/host-name … /host host regexp=([wW]{3}\.)?(.+)\:[0-9]+ host-name${host.regexp[2]}/host-name … /host The reason I ask is that we have thousands of virtual hosts that match the regular expression, but we often want to make some specific settings for a given host (unique host-alias or something). Does Resin store these hosts in a list and use the first one that is found in the configuration? Specific host ids have priority over regexps. So myhost.com should match independent of the order of those two tags. For two regexps, the first one should match. -- Scott Thanks, Shane ___ 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