> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plura.io/ja/faq/siem/etc/apache-http.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
