There are 2 possible variables to use inside the template: Put these variables in the content of the errorfile templates and they will be replaced by the actual errorcode / message. (include the curly braces around the text)<br/> <b>{errorcode}</b> this represents the errorcode<br/> <b>{errormsg}</b> this represents the human readable error<br/> </td> </tr> <tr> <td> </td> </tr> <tr> <td> <?php $counter = 0; $fileslist->Draw($a_files); ?> </td> </tr> <tr> <td> </td> </tr> <tr> <td width="78%"> <input name="Submit" type="submit" class="formbtn" value="Save" onClick="enable_change(true)" /> </td> </tr> </table> </div>
</tr> </table> <br/> acl's with the same name will be 'combined' using OR criteria.<br/> For more information about ACL's please see <a href='http://haproxy.1wt.eu/download/1.5/doc/configuration.txt' target='_blank'>HAProxy Documentation</a> Section 7 - Using ACL's<br/><br/> <strong>NOTE Important change in behaviour, since package version 0.32</strong><br/> -acl's are no longer combined with logical AND operators, list multiple acl's below where needed.<br/> -acl's alone no longer implicitly generate use_backend configuration. Add 'actions' below to accomplish this behaviour. </td> </tr> <tr> <td width="22%" valign="top" class="vncellreq">Actions</td> <td width="78%" class="vtable" colspan="2" valign="top"> <?php $a_actionitems = $pconfig['a_actionitems']; $htmllist_actions->Draw($a_actionitems); ?> <br/> Example: <table border='1' style='border-collapse:collapse'> <tr> <td><b>Action</b></td> <td><b>Parameters</b></td> <td><b>Condition</b></td> </tr> <tr> <td>Use Backend</td> <td>Website1Backend</td> <td>Backend1acl</td> </tr> <tr>
</tr> <tr><td> </td></tr> <? if (haproxy_verion() >= '1.6' ) { ?> <tr> <td colspan="2" valign="top" class="listtopic">Email notifications</td> </tr> <tr> <td valign="top" class="vncell"> Mailer servers </td> <td class="vtable"> It is possible to send email alerts when the state of servers changes. If configured email alerts are sent to each mailer that is configured in a mailers section. Email is sent to mailers using SMTP. <br/> <? $counter=0; $mailerslist->Draw($a_mailers); ?> </td> </tr> <tr> <td valign="top" class="vncell"> Mail level </td> <td class="vtable"> <? echo_html_select('email_level', $a_sysloglevel, $pconfig['email_level']); ?> Define the maximum loglevel to send emails for. </td> </tr> <tr>
<?php if (haproxy_version() >= '1.6-dev4') { ?> <tr> <td colspan="2" valign="top" class="listtopic">Global DNS resolvers for haproxy</td> </tr> <tr> <td valign="top" class="vncell"> DNS servers </td> <td class="vtable"> Configuring DNS servers will allow haproxy to detect when a servers IP changes to a different one in 'elastic' environments without needing to be restarted. <br/> <?php $counter = 0; $resolverslist->Draw($a_resolvers); ?> </td> </tr> <tr> <td valign="top" class="vncell"> 'resolver_retries' </td> <td class="vtable"> <input name="resolver_retries" type="text" <?php if (isset($pconfig['resolver_retries'])) { echo "value=\"{$pconfig['resolver_retries']}\""; } ?> size="50"/><br/> Email address to be used as the sender of the emails.
address and ports. In http mode also the HTTP request and captured headers and cookies will be logged.</div> </td> </tr> <tr><td> </td></tr> <tr> <td colspan="2" valign="top" class="listtopic">Error files</td> </tr> <tr class="" align="left" id='errorfiles'> <td colspan="2" valign="top" class="vtable"> Use these to replace the error pages that haproxy can generate by custom pages created on the files tab. For example haproxy will generate a 503 error page when no backend is available, you can replace that page here. <br/> <br/> <?php $a_errorfiles = $pconfig['a_errorfiles']; $errorfileslist->Draw($a_errorfiles); ?> </td> </tr> <tr><td> </td></tr> </table> <br/> <br/> <table class="haproxy_primary" width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> <td colspan="2" valign="top" class="listtopic">Advanced settings</td> </tr> <tr align="left"> <td width="22%" valign="top" class="vncell">Client timeout</td> <td width="78%" class="vtable" colspan="2"> <input name="client_timeout" type="text" <?php if (isset($pconfig['client_timeout'])) {
<td width="22%" valign="top" class="vncellreq">Primary frontend</td> <td width="78%" class="vtable" colspan="2"> <?php echo_html_select('primary_frontend', $primaryfrontends, $pconfig['primary_frontend'], "You must first create a 'primary' frontend.", "updatevisibility();"); ?> </td> </tr> <tr class="haproxy_primary"> <td width="22%" valign="top" class="vncellreq">External address</td> <td width="78%" class="vtable"> <?php $counter = 0; $a_extaddr = $pconfig['a_extaddr']; $htmllist_extadd = new HaproxyHtmlList("table_extaddr", $fields_externalAddress); $htmllist_extadd->editmode = true; $htmllist_extadd->Draw($a_extaddr); ?> <script type="text/javascript"> function table_extaddr_row_added(tableid, rowid){ new AutoSuggestControl(document.getElementById("extaddr_custom"+rowid), new StateSuggestions(address_array)); new AutoSuggestControl(document.getElementById("extaddr_port"+rowid), new StateSuggestions(port_array)); table_extaddr_listitem_change(tableid,"",rowid, null);//disables address when not set to custom. } function table_extaddr_listitem_change(tableId, fieldId, rowNr, field) { if (fieldId == "extaddr" || fieldId == "") { field = field || document.getElementById("extaddr"+rowNr); customEdit = document.getElementById("extaddr_custom"+rowNr); customdisabled = field.value == "custom" ? 0 : 1; customEdit.disabled = customdisabled; }