I have a Nodejs rest API server working on 8080 and I configured my ProxyPass like this ( on Ubuntu 22 )
#PROXY-START/
<IfModule mod_proxy.c>
ProxyRequests Off
SSLProxyEngine on
ProxyPass /apitest http://localhost:8080/apitest
ProxyPassReverse /apitest http://localhost:8080/apitest
</IfModule>
#PROXY-END/
I can reach my content from https://mydomain.com:8080/apitest , however https://mydomain.com/apitest gives me 502 Proxy Error. I am not sure where I went wrong. Please guide me.
Edit :
I added a simpler version and now I get 404. Both directory exists by the way
#PROXY-START/
<IfModule mod_proxy.c>
ProxyRequests Off
SSLProxyEngine on
ProxyPass /a http://localhost/pr
ProxyPassReverse /a http://localhost/pr
</IfModule>
#PROXY-END/