How do I disable autostart caddy service?

i used this command to stop caddy from auto start sudo update-rc.d -f caddy disable but ubuntu said update-rc.d: /etc/init.d/caddy: file does not exist

how can i stop autostart caddy during startup.

Hi @Milad_ranjbar,

This depends a lot on which version of Ubuntu you’ve installed and how you configured Caddy to auto start in the first place. Caddy itself doesn’t set up any kind of automatic start, except when you use the hook.service plugin:

Perhaps this link might be helpful:

ok thanks. and another problem i have a wordpress site and config caddy according to example for wordpress on github, but when an ajax request made broswer tell me also to note i turn off tls:

1. Request URL:
2. Request Method:
3. Status Code:
503 Service Unavailable
4. Remote Address:
5. Referrer Policy:

Are you going off this example? examples/wordpress at master · caddyserver/examples · GitHub

If so, are you running the PHP-FPM listener on port 9000?

yes of course, i mean my wordpress site work but some parts of it that need ajax request, i have problem.

maybe i should enable cors ?

Could you enable site access and error logs (with log /path/to/caddy/access.log and errors /path/to/caddy/errors.log), make an access attempt, and see what you get?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.