a2enmod proxy
a2enmod proxy_http
proxyだけだとダメでproxy_httpも有効化する必要がある。
proxy.conf
proxy.confを編集。proxy_httpは編集するものは無い
# If you want to use apache2 as a forward proxy, uncomment the # 'ProxyRequests On' line and theblock below. # WARNING: Be careful to restrict access inside the block. # Open proxy servers are dangerous both to your network and to the # Internet at large. # # If you only want to use apache2 as a reverse proxy/gateway in # front of some web application server, you DON'T need # 'ProxyRequests On'. #ProxyRequests On # # AddDefaultCharset off # Order deny,allow # Deny from all # #Allow from .example.com # # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block #ProxyVia Off ProxyRequests OffOrder deny,allow Allow from all ProxyPass /stream http://127.0.0.1:9999 ProxyPassReverse /stream http://127.0.0.1:9999 ProxyVia On
0 件のコメント:
コメントを投稿