CentOS6.9でRocket.Chatを運用しているのですが、先日サーバを再起動することになり、再起動した後、Rocket.Chatの起動をしたのですが、503エラーでサイトにアクセスできません。
一応いろいろ、設定を変えたりして見たのですが、うまくいきません。
apache2.2.15を使っています。
/var/log/errer_logには
[Sat Jan 06 23:17:01 2018] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:3000 (*) failed
というエラーが出ているので、リバースプロキシに問題があるような気がしているのですが、よくわからないです。
ROcket.Chatのconfは
<VirtualHost :80>
ServerName mydomain
ProxyPass /websocket ws://localhost:3000/websocket
ProxyPassMatch ^/sockjs/(.)/websocket ws://localhost:3000/sockjs/$1/websocket
ProxyRequests Off
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
RewriteEngine on
RewriteCond %{SERVER_NAME} =mydomain
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName mydomain
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.) ws://localhost:3000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.) http://localhost:3000/$1 [P,L]
ProxyPassReverse / http://localhost:3000/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mydomian/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/mydomian/chain.pem
</VirtualHost>

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