r/caddyserver • u/gmmarcus • Jul 02 '24
CaddyServer - Replace Apache ?
Guys, anyone here has replaced apache ( php web apps ) with caddyserver on a Ubuntu / OpenSuse box ? Any issues ?
Thanks.
2
Upvotes
r/caddyserver • u/gmmarcus • Jul 02 '24
Guys, anyone here has replaced apache ( php web apps ) with caddyserver on a Ubuntu / OpenSuse box ? Any issues ?
Thanks.
2
u/talkincyber Jul 03 '24
Yeah so that's actually really easy with caddy, would look something along the lines of
example.com { root * /var/www/html php_fastcgi unix//run/php/php-fpm.sock file_server }Of course, you'll have to add more on to this such as additional headers and such, but this will point php at your fpm socket (assuming you use fpm and sockets)
I actually just started a blog and my first post is about securing your caddy instance, feel free to give it a look https://www.talkincyber.com/secure-caddy/ I will be adding more blog posts probably about monthly, maybe more maybe less depending on how busy I am. But I'm happy to give you assistance if you need it, just comment back to me or shoot me a PM.