Ajay_Kumar
(Ajay Kumar)
December 9, 2022, 11:21am
1
: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
SandCat
(Sand Cat)
December 9, 2022, 9:11pm
2
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
matt
(Matt Holt)
December 11, 2022, 5:22am
4
I think if you filled out the Help template we would be able to help you Right now our guess is only as good as yours.
Ajay_Kumar
(Ajay Kumar)
December 12, 2022, 7:30am
5
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.
matt
(Matt Holt)
December 12, 2022, 3:57pm
8
It populates automatically when you click “New Topic” and choose the “Help” category.
Ajay_Kumar
(Ajay Kumar)
December 12, 2022, 6:40pm
9
im already in help category
Ajay_Kumar
(Ajay Kumar)
December 12, 2022, 6:50pm
10
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:
matt
(Matt Holt)
December 13, 2022, 5:25am
11
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
system
(system)
Closed
January 8, 2023, 11:21am
12
This topic was automatically closed after 30 days. New replies are no longer allowed.