Changes

Hosts.xml

No change in size, 02:53, 24 June 2007
no edit summary
<blockquote style="background: white; border: 1px solid black; padding: 1em;">
<host name="'''b[0-9]+'''" profile-id="'''profile'''" />
</blockquote>
<blockquote style="background: white; border: 1px solid black; padding: 1em;">
<host name="'''b.+'''" profile-id="'''profile1'''" />
</blockquote>
<blockquote style="background: white; border: 1px solid black; padding: 1em;">
<host name="'''.+'''" profile-id="'''profile'''" />
</blockquote>
works for *all* hosts - use with care (!), place at the bottom of '''hosts.xml''' (see below why '''.+''' regular expression match should be placed at the end of the '''hosts.xml''' file).
<blockquote style="background: white; border: 1px solid black; padding: 1em;">
<host name="'''b.+'''" profile-id="'''profile2'''" /><br>
<host name="'''bronek1'''" profile-id="'''profile1'''" /><br>
<host name="'''bron.+'''" profile-id="'''profile3'''" /><br>
</blockquote>
Normally, hosts are parsed from top to the bottom, except when the hostname is not a regular expression.
So the host '''bronek1''' will match '''profile1''', even though it also matches '''b.+''' and '''bron.+''' (which are regular expressions).
==See also==
Anonymous user