CentOS6.9 Apache2.2.15でWebサーバを立てています。
ちょっとトラブルがあり、サーバのバックアップを使って元に戻したところ、リバースプロキシをしていたRocket.Chatにアクセスできなくなりました。
chat.conf
1<VirtualHost *:80> 2ServerName chatsuzunet.orz.hm 3ProxyPass /websocket ws://localhost:3000/websocket 4ProxyPassMatch ^/sockjs/(.*)/websocket ws://localhost:3000/sockjs/$1/websocket 5ProxyRequests Off 6ProxyPass / http://127.0.0.1:3000/ 7ProxyPassReverse / http://127.0.0.1:3000/ 8RewriteEngine on 9RewriteCond %{SERVER_NAME} =chatsuzunet.orz.hm 10RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=permanent] 11</VirtualHost> 12 13<IfModule mod_ssl.c> 14<VirtualHost *:443> 15ServerName chatsuzunet.orz.hm 16ProxyPass /websocket ws://localhost:3000/websocket 17ProxyPassMatch ^/sockjs/(.*)/websocket ws://localhost:3000/sockjs/$1/websocket 18ProxyRequests Off 19ProxyPass / http://127.0.0.1:3000/ 20ProxyPassReverse / http://127.0.0.1:3000/ 21 22RewriteEngine On 23RewriteCond %{HTTP:Upgrade} =websocket [NC] 24RewriteRule /(.*) ws://localhost:3000/$1 [P,L] 25RewriteCond %{HTTP:Upgrade} !=websocket [NC] 26RewriteRule /(.*) http://localhost:3000/$1 [P,L] 27 28ProxyPassReverse / http://localhost:3000/ 29 30Include /etc/letsencrypt/options-ssl-apache.conf 31SSLCertificateFile /etc/letsencrypt/live/chatsuzunet.orz.hm-001/cert.pem 32SSLCertificateKeyFile /etc/letsencrypt/live/chatsuzunet.orz.hm-001/privkey.pem 33Include /etc/letsencrypt/options-ssl-apache.conf 34SSLCertificateChainFile /etc/letsencrypt/live/chatsuzunet.orz.hm-001/chain.pem 35</VirtualHost> 36 37</IfModule>
サーバのバックアップを戻したところ、3カ月の有効期限のSSL証明書が切れていたため、再度撮り直しています。
現在は、Rocket.chatのページにアクセスしようとすると、証明書が違う(suzunet.orz.hm)のものであるとの警告が出て、そのまま進むと、suzunet.orz.hmのindex.htmlのページが見えます。
どうしたらいいでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。