CodeIgniter Forums
nginx server install - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: nginx server install (/thread-74911.html)



nginx server install - mintwint - 11-24-2019

Hello!

What rules should I use for nginx server?


RE: nginx server install - ScientiFist - 11-30-2019

Basics rules you can check: 
https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter/

But basically it's should be that in your default config: 
Code:
root /var/www/project/public/;

Code:
        location ~ \.php$ {
                fastcgi_param CI_ENVIRONMENT "development";
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.2-fpm.sock;
        }