Hi guys!

this is the content of my httpd.conf file:

server "birbi.biz" {
    listen on * port 80
    location "/.well-known/acme-challenge/*" {
        root "/acme"
        request strip 2
    }
    location * {
        block return 301 "https://$HTTP_HOST$REQUEST_URI";
    }
}

server "birbi.biz" {
    listen on * tls port 443
    tls {
        certificate "/etc/ssl/birbi.biz:443.crt"
        key "/etc/ssl/private/birbi.biz:443.key"
    }
    location * {
        pass to "http://localhost:3000/";
    }
}

when I check the syntax with `$ doas httpd -n` I get the following error:

`/etc/httpd.conf:20: syntax error`

where line 20 is: `pass to "http://localhost:3000/"`.

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?

Thanks!

Reply via email to