0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ApacheのForward ProxyでHTTPSの特定サイトへのアクセスのみを許可する設定の注意点

Posted at

ApacheでForward Proxyを構築し、HTTPSの特定サイトのみへのアクセスを許可する場合、Proxyディレクティブでは、URLではなくホスト名(FQDN)を指定する必要があります。

例えば、https://abc.example-20240915.org/path/へのアクセスのみを許可するForward Proxyを構築したいとします。

正しい設定は以下になります。FQDNしか指定できないため、「/path/」といった特定パスに限定することはできません。

# 正しい設定
<Proxy abc.example-20240915.org>
  Require all granted
</Proxy>

また、以下は全て誤りになります。

# URLを指定している
<Proxy https://abc.example-20240915.org/>
  Require all granted
</Proxy>

# パスを含めてしまっている
<Proxy abc.example-20240915.org/path/>
  Require all granted
</Proxy>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?