apache
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
apache [2020/04/11 00:49] – nabezo | apache [2020/04/11 02:09] (現在) – [ubuntuでの設定] nabezo | ||
---|---|---|---|
行 100: | 行 100: | ||
===== ReverseProxy ===== | ===== ReverseProxy ===== | ||
* https:// | * https:// | ||
+ | ==== ubuntuでの設定 ==== | ||
mod_proxyを有効にする | mod_proxyを有効にする | ||
sudo a2enmod proxy proxy_http | sudo a2enmod proxy proxy_http | ||
- | httpd.conf | + | / |
- | | + | |
- | ServerName mysrv.co.jp | + | |
- | # | + | <Proxy *> |
- | ProxyPass /mydir/ http://tosrv.co.jp/ | + | Require all granted |
- | # | + | </ |
- | | + | |
- | + | ProxyPassReverse /mydir http://srv.com/ | |
- | + | ||
+ | mod_rewriteを有効にする | ||
+ | sudo a2enmod proxy proxy_http | ||
+ | / | ||
+ | < | ||
+ | < | ||
+ | AllowOverride All # | ||
+ | </ | ||
+ | ... | ||
+ | </ |
apache.1586533756.txt.gz · 最終更新: 2020/04/11 00:49 by nabezo