> For the complete documentation index, see [llms.txt](https://docs.plura.io/ja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plura.io/ja/faq/siem/etc/apache-http.md).

# ApacheサーバーでHTTP圧縮非活性化

{% hint style="info" %}

```
ウェブサーバーでHTTP圧縮を非活性化して動作するとPLURA からデータ流出行為を検出出来ます。
 次はApacheサーバーでHTTPが圧縮されているか確認して圧縮を非活性化する方法です。
```

{% endhint %}

### 1. HTTP圧縮のためサーバーテスト <a href="#id-1" id="id-1"></a>

ヘッダーに下記の通り要請を追加してHTTP圧縮を確認します。

{% hint style="info" %}

<pre><code><strong>Accept-Encoding:compress,gzip
</strong></code></pre>

{% endhint %}

圧縮が活性化されているとサーバーは圧縮されているページを応答し, 圧縮をサポートしない場合は一般テキストに応答します。

### 2. CentOS/Red HatでHTTP圧縮非活性化 <a href="#id-2" id="id-2"></a>

sudo vi /etc/httpd/conf/httpd.conf

{% hint style="info" %}

```
#LoadModule deflate_module modules/mod_deflate.so
 (この行を注釈処理)
```

{% endhint %}

`#service httpd restart`

### 3. UbuntuでHTTP圧縮非活性化 <a href="#id-3" id="id-3"></a>

`# sudo a2dismod deflate`

`# sudo /etc/init.d/apache2 restart`

<br>

### 参考資料 <a href="#id-4" id="id-4"></a>

<https://docs.plura.io/ja/faq/siem/dfilter/breach>
