Hi all,
running Apache 2.4 on Debian 10.
I need to redirect a virtual path (/some/path) to another URI (/path/to/another/uri) in a Node.js instance running on the same server, listening on port 6666
As you can see Node.js is up and running and the (empty) reply is correct.
Code:
root@test:/var/www/server-local# curl http://localhost:6666/path/to/another/uri
<html></html>
To achieve the redirection, I used a reverse proxy
Code:
<Location /some/path>
ProxyPass http://localhost:6666/path/to/another/uri
ProxyPassReverse http://localhost:6666/path/to/another/uri
</Location>
that's not working: 404
I have other instances of ProxyPass (with other URIs, so there's no need to check for overrides)
After a bit of headbanging and lowering the LogLevel, I discovered that I have this error in logs
Code:
[Wed Jan 22 09:42:02.592536 2020] [core:info] [pid 10570] [client a.b.c.d:58375] AH00128: File does not exist: /var/www/html/some/path
It seems that it's searching for a real directory in the file system, that obviously is not present.
I read about permission issues, but it doesn't seem to be the right path.
I'm a bit stuck. A 10-minute do-and-forget work has took me off the whole day.
Ideas?
Thanks in advance
Morenz