LoginSignup
3
5

More than 5 years have passed since last update.

Apacheでproxyの設定

Posted at

CentOSのversion確認

bash
cat /etc/redhat-release
CentOS release 6.7 (Final)

Apacheのversion確認

bash
httpd -V
Server version: Apache/2.2.15 (Unix)

proxyが読み込まれていることを確認

bash
httpd -M | grep proxy
proxy_module (shared)
proxy_balancer_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_ajp_module (shared)
proxy_connect_module (shared)

FireWallが空いていることを確認

Listen port(8888)が開放されていることを確認

bash
netstat -antp
tcp        0      0 ::ffff:119.254.114.xxx:8888 ::ffff:210.213.86.122:13812 TIME_WAIT   - 

設定ファイル

/etc/httpd/conf.d/proxy.conf
Listen 8888
<IfModule mod_proxy.c>
    ProxyRequests On
    ProxyVia On
    AllowCONNECT 443

    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
</IfModule>
ProxyTimeout  1000*1
3
5
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
3
5