Active heath-check issue

:80 {
log

handle_path /abc {
    reverse_proxy http://localhost:3000 
health_uri /status
}

}

its show error
‘handle_path’: /etc/caddy/Caddyfile:7 - Error during parsing: unrecognized directive: health_uri - are you sure your Caddyfile structure (nesting and braces) >

i need to help

Should be something like this:

:80 {
        log
        handle_path /abc {
                reverse_proxy http://localhost:3000 {
                health_uri /status
                }
        }
}

Check syntax: reverse_proxy (Caddyfile directive) — Caddy Documentation

1 Like

its show white page only

I think if you filled out the Help template we would be able to help you :wink: Right now our guess is only as good as yours.

any solution for active health check?

@Ajay_Kumar please fill out the help topic template, as per the forum rules. You haven’t given us enough information to go on.

how to fill?

It populates automatically when you click “New Topic” and choose the “Help” category. :+1:

im already in help category

1. Output of caddy version:

v.2.6.2

2. How I run Caddy:

systemctl start caddy

a. System environment:

ubuntu 22.10

b. Command:

Paste command here.

c. Service/unit/compose file:

systemd

d. My complete Caddy config:

:80 {
log

handle_path /abc {
    reverse_proxy http://localhost:3000 
health_uri /status
}

}

3. The problem I’m having:

active heath check

4. Error messages and/or full log output:

its show error
‘handle_path’: /etc/caddy/Caddyfile:7 - Error during parsing: unrecognized directive: health_uri - are you sure your Caddyfile structure (nesting and braces) >

5. What I already tried:

6. Links to relevant resources:

Notice the docs for reverse_proxy, you need { }:

:80 {
    log

    handle_path /abc {
        reverse_proxy http://localhost:3000 {
            health_uri /status
        }
    }
}

Please use proper indentation, it will make your syntax errors much more apparent :slight_smile:

This topic was automatically closed after 30 days. New replies are no longer allowed.