Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/cwaf/tpl/index_tab_modsec.html

   <div id="tabs-modsec">
    <h3>Mod Security Configuration</h3>
      <table border=0 class="t_config config">
        [% IF modsec.custom_config == 1 %]  
        <tr>
          <td colspan="2"><span class="connection_error">Custom Mod Security configuration found!
                                                     <br>Press "Update config" button to update it with values from this screen.
                                                     <br>After update, backup of current configuration could be found in: [% main.mod_security_conf %].custom
                          </span></td>
        </tr>
        [% END %]
        <tr>
          <td class="td_left_column"><label for="secengine" title="Disable or enable Mod Security">Security Engine:</label></td>
          <td>
           <select id="secengine">
            <option value="On" [% IF msconf.SecRuleEngine == 'On' %] selected [% END %]>On</option>
            <option value="Off" [% IF msconf.SecRuleEngine == 'Off' %] selected [% END %]>Off</option>
            <option value="DetectionOnly" [% IF msconf.SecRuleEngine == 'DetectionOnly' %] selected [% END %]>DetectionOnly</option> 
           </select>
           <span class="float-right"> <a href="javascript:void()" class="show_links" id="disable_domains_button">Disable domains</a></span>
          </td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="auditengine" title="Logging Options">Audit Engine:</label></td>
          <td>
           <select id="auditengine">
            <option value="On" [% IF msconf.SecAuditEngine == 'On' %] selected [% END %]>On</option>
            <option value="Off" [% IF msconf.SecAuditEngine == 'Off' %] selected [% END %]>Off</option>
            <option value="RelevantOnly" [% IF msconf.SecAuditEngine == 'RelevantOnly' %] selected [% END %]>Relevant Only</option>
           </select>
          </td>
        </tr>
        [% IF modsec.family == 2 %]
        <tr>
          <td class="td_left_column"><label for="server_signature" title="Set Server Signature To:<br>'Protected by COMODO WAF'.">Set Server Signature:</label></td>
          <td><input type="checkbox" id="server_signature" [% IF msconf.SecServerSignature == 1 %]checked[% END %]></td>
        </tr>
        [% END %]
        <tr>
          <td class="td_left_column"><label for="response_body_limit" title="Response Body Limit (bytes)">Set Response Body Limit:</label></td>
          <td><input id="response_body_limit" class="system" value="[% msconf.SecResponseBodyLimit %]"/></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="audit_log" title="Audit Log Filename">Audit Log:</label></td>
          <td><input id="audit_log" class="system" value="[% msconf.SecAuditLog %]"/></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="audit_log_storage" title="Audit Log Storage Dir">Audit Log Storage:</label></td>
          <td><input id="audit_log_storage" class="system" value="[% msconf.SecAuditLogStorageDir %]"/></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="audit_log_type" title="Audit Log Type">Audit Log Type:</label></td>
          <td>
             <select id="audit_log_type">
              <option value="Serial" [% IF msconf.SecAuditLogType == 'Serial' %] selected [% END %]>Serial</option>
              <option value="Concurrent" [% IF msconf.SecAuditLogType == 'Concurrent' %] selected [% END %]>Concurrent</option>
             </select>
          </td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="debug_log" title="Debug Log Filename">Debug log:</label></td>
          <td><input id="debug_log" class="system" value="[% msconf.SecDebugLog %]" /></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="debug_level" title="Debug Level">Debug Level:</label></td>
          <td><div class="modsec_debuglevel" id="debug_level"></div><input type="text" id="msamount" disabled/></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="body_access" title="Request Body Processing">Request Body Access:</label></td>
          <td>
           <select id="body_access">
            <option value="On" [% IF msconf.SecRequestBodyAccess == 'On' %] selected [% END %]>On</option>
            <option value="Off" [% IF msconf.SecRequestBodyAccess == 'Off' %] selected [% END %]>Off</option>
           </select>
          </td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="data_dir" title="Mod Security Data Directory">Data Dir:</label></td>
          <td><input id="data_dir" value="[% msconf.SecDataDir %]" /></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="temp_dir" title="Mod Security Temp Directory">Temp Dir:</label></td>
          <td><input id="temp_dir" value="[% msconf.SecTmpDir %]" /></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="match_limit" title="Enter PCRE Match Limit" >PCRE Match Limit:</label></td>
          <td><input id="match_limit" value="[% msconf.SecPcreMatchLimit %]" /></td>
        </tr>
        <tr>
          <td class="td_left_column"><label for="match_recursion" title="Enter PCRE Match Recursion">PCRE Match Recursion:</label></td>
          <td><input id="match_recursion" value="[% msconf.SecPcreMatchLimitRecursion %]" /></td>
        </tr>
      </table>
      <table class="t_config feedback">
        <tr>
          <td class="td_left_column"></td>
          <td class="form_warn"><div class="form_warn" id="modsec_warn"/></td>
        </tr>
      </table>

    <button class="dialog_buttons" id="modsec_update">Update config</button>
  </div>
Back to Directory File Manager