I’m trying to set up a Laravel website using caddy.
The website folder path is /root/takiacademy.
I tried to follow Laravel Example and changed what I thought I should change.
So, this is what my file looks like:
php artisan serve doesn’t start a FastCGI listener; it starts a web server.
You’ll want to use proxy instead of fastcgi to connect to port 8000.
Keep in mind you’re deviating from the example significantly; by using php artisan serve and proxying to it, you’re abandoning Caddy’s fully fledged web server functionality in favour of proxying to PHP’s internal, single-threaded, development-oriented web server. In Laravel’s provided example, they’re using Caddy to serve the site files directly and using FPM for processing PHP files.