How to configure the ZABBIX agent?

I want to use caddy instead of nginx to configure the ZABBIX agent. How to set the configuration of PHP by Caddy?

What have you tried?

This is my configuration,It seems that all requests are sent to PHP

{
debug
email zc@163.com
log {
output file /var/log/access.log
}
}
zabbix.com {
root * /data/zabbix/ui
php_fastcgi 127.0.0.1:9000
}

Please use code formatting when posting configs/logs on the forums. It’s very difficult to follow posts without having whitespace preserved.

Isn’t that a good thing? Maybe I misunderstand.

But generally, you need to enable file_server as well, so that Caddy can serve JS/CSS/images from disk. See the example at the bottom of the php_fastcgi docs, which point this out:

thanks you

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