このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
01_linux:02_www:16_mod_proxy [2019/01/17 07:21] – 作成 matsui | 01_linux:02_www:16_mod_proxy [2019/02/20 04:21] (現在) – matsui | ||
---|---|---|---|
行 3: | 行 3: | ||
http:// | http:// | ||
- | < | + | |
- | ServerName hogehoge.com | + | ServerName hogehoge.com |
- | ProxyPass /proxy http:// | + | ProxyPass /proxy http:// |
- | ProxyPassReverse /proxy http:// | + | ProxyPassReverse /proxy http:// |
- | </ | + | </ |
+ | ===== HTTPSのリバースproxyにする場合 ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | SSLEngine on | ||
+ | SSLProtocol all -SSLv2 | ||
+ | SSLCipherSuite ALL: | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | SSLCACertificateFile / | ||
+ | |||
+ | SSLProxyEngine On | ||
+ | ProxyPass | ||
+ | ProxyPassReverse / https:// | ||
+ | |||
+ | CustomLog logs/ | ||
+ | ErrorLog logs/ | ||
+ | |||
+ | ## 以下はアクセス制限 | ||
+ | < | ||
+ | Order deny,allow | ||
+ | # for system | ||
+ | Allow from 127.0.0.1 | ||
+ | |||
+ | # Management LAN | ||
+ | Allow from 192.168.11.0/ | ||
+ | Deny from all | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
{{tag> | {{tag> |