In this Nginx configuration Lumen is actually installed within /home/mydomainfolder/html/admin/api/
, so this is the root folder of Lumen installation. The public folder within this api directory is created by Lumen.
Replace <your_domain>
with your actual domainname in Nginx (or use localhost for development).
Change /var/www/mydomainfolder/html
to your actual website location on disk.
Change /var/run/php-fpm/php-fpm.sock
to the correct PHP fpm socket file (eg. it could also be /var/run/php/php7.3-fpm.sock
for example)