• 設定を繰り返すと、.htaccess内のモジュールエンプティとなり、500 Server Error
    <IfModule mod_siteguard.c>
    </IfModule>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @ifnoob Please do not abuse the modlook tag. I’ve removed the tag.

    Thread Starter ifnoob

    (@ifnoob)

    Sorry mistake.

    Thread Starter ifnoob

    (@ifnoob)

    /classes/siteguard-waf-exclude-rule.php <- fixed

    if ( isset( $rule[‘sig’] ) ) {
    $htaccess_str .= “<IfModule mod_siteguard.c>\n”;
    }
    foreach ( $rules as $rule ) {
    if ( isset( $rule[‘filename’] ) && isset( $rule[‘sig’] ) ) {
    $filename = $rule[‘filename’];
    $sig = $rule[‘sig’];
    if ( ! empty( $filename ) ) {
    $htaccess_str .= ” <Files $filename >\n”;
    $htaccess_str .= $this->output_exclude_sig_1( $sig );
    $htaccess_str .= ” </Files>\n”;
    } else {
    $htaccess_str .= $this->output_exclude_sig_1( $sig );
    }
    }
    }
    if ( isset( $rule[‘sig’] ) ) {
    $htaccess_str .= “</IfModule>\n”;
    }
    そもそも、シグネッチャがない場合、<IfModule mod_siteguard.c> を吐き出す必要があるのか?。

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘500 Server Error’ is closed to new replies.