CodeIgniter Forums
Deployment on Caddy Server v2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Deployment on Caddy Server v2 (/showthread.php?tid=75710)



Deployment on Caddy Server v2 - tweenietomatoes - 03-08-2020

Here is an example Caddyfile to deploy CI4 on Caddy 2

Code:
example.com {
root * /var/www/html/public
try_files {path} {path}/ /index.php?{query}
php_fastcgi unix//run/php/php7.3-fpm.sock
file_server
}

It can be added onĀ docs.