![서버 로그의 프록시 오류](https://rvso.com/image/760966/%EC%84%9C%EB%B2%84%20%EB%A1%9C%EA%B7%B8%EC%9D%98%20%ED%94%84%EB%A1%9D%EC%8B%9C%20%EC%98%A4%EB%A5%98.png)
나는 website.com에서 React 프론트엔드, app.website.com에서 두 번째 프론트엔드, 그리고 website.com:8080에서 Node 백엔드를 실행하고 있습니다.
서버 로그의 오류
내 서버 로그에는 매우 정기적으로(격일과 마찬가지로) 표시되고 항상 함께 표시되는 두 가지 오류가 있습니다. 참조자는 때때로 다르며 때로는 또한https://app.website.com/
[proxy_http:error] [pid 21002:tid 140688062592768] (70007)The timeout specified has expired: [client xx.xxx.xx.xx:50461] AH01102: error reading status line from remote server 127.0.0.1:8080, referer: https://website.com/sign-up
[proxy:error] [pid 21002:tid 140688062592768] [client xx.xxx.xx.xx:50461] AH00898: Error reading from remote server returned by /api/v2/register_stakeholder, referer: https://website.com/sign-up
가상호스트에는 다음이 포함됩니다
<VirtualHost *:80>
ServerName website.com
ProxyPreserveHost On
ProxyPass /api/ http://127.0.0.1:8080/
ProxyPassReverse /api/ http://127.0.0.1:8080/
</VirtualHost>
<VirtualHost *:80>
ServerName app.website.com
ProxyPreserveHost On
ProxyPass /api http://127.0.0.1:8080/api/
ProxyPassReverse /api http://127.0.0.1:8080/api/
</VirtualHost>
질문
이러한 오류의 원인은 무엇이며 어떻게 해결할 수 있습니까?
나는 가상호스트에 대해 아는 바가 거의 없으며 나를 위해 가상호스트를 설정해준 개발자에게 물어볼 수도 없습니다. 세 가지 오류 모두 프록시의 잘못된 구성을 가리키는 것 같습니다. ~에https://serverfault.com/a/237485/Keepalive=On
라인 추가에 관한 내용을 읽었습니다 ProxyPass
. 그러나 그것이 무엇을 하는지, 그것이 내 문제를 해결할 수 있는지, 그리고 그렇게 하는 것이 안전한지 전혀 모릅니다.