ApacheでVirtualHostを使って二つのサーバを立てています.
一つはApache自身が処理するサーバで,
二つ目はローカルにある別のサーバへアクセスを流すリバースプロキシとして設定しています.
設定内容は以下です
/etc/apache2/sites-enabled/hoge.conf NameVirtualHost *:443 <VirtualHost *:443> ServerName hoge.mydns.jp SSLEngine on SSLCertificateFile /etc/letsencrypt/live/hoge.mydns.jp/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/hoge.mydns.jp/privkey.pem Header set Strict-Transport-Security "max-age=31536000;" ServerAdmin webmaster2@virtual.host DocumentRoot /var/www/site1 ErrorLog /var/log/apache2/virtual.host.error.log CustomLog /var/log/apache2/virtual.host.access.log combined LogLevel warn </VirtualHost> <VirtualHost *:443> ServerName fuga.hoge.mydns.jp ProxyPreserveHost On ProxyPass / https://192.168.1.x/ timeout=3600 </VirtualHost>
エラー内容は以下です
Error log [Fri Dec 21 01:58:41.841420 2018] [ssl:error] [pid 15134] AH02032:hostname FUGA.HOGE.mydns.jp provided via SNI and hostname XXX.XX.X.XXX provided via HTTP have no compatible SSL setup
ブラウザに表示されるエラーは以下です
Internal Server Error The server encounted an internal error or misconfigration and was unable to complete your request. Please contact the server administarator or [no address given] to inform them of the time this erro occured, and the actions you performed just before the error. More information about this error may be available in the server error log.
プロキシ(施設のプロキシなので詳細は不明)を通してfuga.hoge.mydns.jpにアクセスすると
Internal Server Errorが発生し,アクセスできません.
同アドレスに,
プロキシを通さずに(グローバルから)アクセスすると192.168.1.x上のサーバが正しく応答します.
したがって(名前ベースの)VirtualHost自体は正しく動作していると推測しています.
プロキシを通しても通さなくても,
hoge.mydns.jpのほうは正しく表示されます.
http://www.playstudy.net/blog/develop/php_ssl_socket.html
このあたりの話なのだろう,,,とエラーmmsgでググってわかったのですが,当該プロキシはいじれませんし,
Apacheの設定等で何とかなるものなのかどうかの判別がつきません.
お知恵をお貸しください.
環境
Ubuntu 18.04
Apache 2.4.29

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/21 02:11 編集