Apache HTTPプロキシの手動アップグレード(Windows)

Apache HTTP Proxyを最新バージョンにアップグレードするには、次の手順に従います。

1.次のファイルをバックアップします。

C:\Program Files\Apache HTTP Proxy 2.[x.xx]\conf\httpd.conf

C:\Program Files\Apache HTTP Proxy 2.[x.xx]\bin\password.file

C:\Program Files\Apache HTTP Proxy 2.[x.xx]\bin\group.file

2.管理コマンドプロンプトを開き、次のコマンドを実行して、ApacheHttpProxyサービスを停止します。

sc stop ApacheHttpProxy

3.ESET ダウンロードサイトからApache HTTP Proxyインストーラーファイルをダウンロードし、内容をC:\Program Files\Apache HTTP Proxy 2.[x.xx]\に展開します。展開中に既存のファイルを上書きします。

4.C:\Program Files\Apache HTTP Proxy 2.[x.xx]\confに移動し、httpd.confを右クリックします。コンテキストメニューからプログラムを指定して開く > メモ帳を選択します。

5.httpd.confの下に次のコードを追加します。

ServerRoot "C:\Program Files\Apache HTTP Proxy 2.[x.xx]"
DocumentRoot "C:\Program Files\Apache HTTP Proxy 2.[x.xx]\htdocs"
<Directory "C:\Program Files\Apache HTTP Proxy 2.[x.xx]\htdocs">
 Options Indexes FollowSymLinks
 AllowOverride None
 Require all granted
</Directory>
CacheRoot "C:\Program Files\Apache HTTP Proxy 2.[x.xx]\cache"

6.ユーザー名/パスワードを使用して、 Apache HTTP Proxyにアクセスする場合(Apache HTTP プロキシインストールトピックの手順8)は、次のコードのブロックを置換します。

<Proxy *>
 Deny from all
</Proxy>

以下の内容に変更します(手順1でバックアップしたhttpd.confファイルにあります)。

<Proxy *>
 AuthType Basic
 AuthName "Password Required"
 AuthUserFile password.file
 AuthGroupFile group.file
 Require group usergroup
 Order deny,allow
 Deny from all
 Allow from all
</Proxy>


important

前のApache HTTP Proxyのインストールの代わりにhttpd.confファイルの他のカスタマイズがある場合は、バックアップされたhttpd.confファイルから新しい(アップグレードされた)httpd.confファイルに設定の修正をコピーします。

7.変更を保存し、管理コマンドプロンプトで次のコマンドを実行し、ApacheHttpProxyサービスを起動します。

sc start ApacheHttpProxy

8.サービス説明のバージョンを更新します。

sc description ApacheHttpProxy "Apache/2.4.43"

9.ブラウザで次のURLにアクセスし、Apache HTTPプロキシへの接続をテストします。

http://[IP address]:3128/index.html

問題のトラブルシューティングが必要な場合は、Apache HTTPプロキシログファイルを参照してください。