I am using docker with three containers - backend/frontend/admin. I would like to use such proxy pass to navigate either to admin page or frontend -
<VirtualHost *:80>
ServerName cookie.com
ServerAlias www.cookie.com
# Proxy requests to frontend
ProxyPass / http://frontend:4200/
ProxyPassReverse / http://frontend:4200/
# Proxy requests to backend with the appropriate path
ProxyPass /admin http://admin:8080
ProxyPassReverse /admin http://admin:8080
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
My frontend .ember-cli has proxy with this value - "proxy": "http://backend/ratata/backend/public/index.php"
It was working perfectly fine, when I used backend container port 5004:80, but now when using 80:80 its not.
So when I navigate to localhost it loads all the stuff except some requests and then i get in apache logs this and it hangs the request up to timeout of around 2 minutes. -
[mpm_prefork:error] [pid 347] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
I also get this -
(20014)Internal error (specific information not available): [client 172.22.0.2:52218] AH01102: error reading status line from remote server frontend:4200, referer: http://localhost/
[Thu Feb 15 17:31:22.102014 2024] [proxy:error] [pid 516] [client 172.22.0.2:52218] AH00898: Error reading from remote server returned by /api/v1/settings, referer: http://localhost/
I am clueless what could be wrong here!
Thanks