Hello,

On 2024/04/18 22:29:55 +0200, "Luca Leone" <l...@birbi.biz> wrote:
> Hi guys!
> 
> [...]
> 
> If is change `pass to "http://localhost:3000/"` with a simple `root 
> "/var/www/htdocs"` directive, 
> the syntax check is OK.
> 
> The reason for the `pass to "http://localhost:3000/"` directive is that I am 
> running a node app on 
> /home/luca/node-app, and I want to forward requests to that server.
> 
> Any idea on what I am missing?

httpd doesn't support forwarding requests to another HTTP server sadly.
It only supports FastCGI, or serving static files.  `pass to' is not
part of the httpd' configuration language.

take a look at relayd(8) for proxying requests.


Cheers,

Omar Polo

Reply via email to