How To Setting NGINX For Codeigniter
How To Setting NGINX For Codeigniter :
This video show you how to setting NGINX for codeigniter, and the setting is per directory based project so you can use this configuration for another Codeigniter project. I hope this video can help you to setting NGINX for Codeigniter. 🙂
If you have some problems or difficulties or have some other questions then you can ask me in the comment bellow. I will try answer your questions. 🙂
Please consider supporting me on Patreon :
https://www.patreon.com/ryudith
How to install NGINX on Windows :
How to install PHP 7 with NGINX Windows : https://www.youtube.com/watch?v=jO3gweU6ASU
NGINX configuration for Codeigniter :
# codeigniter project directory location : H:workwebcodeigniter_playgroundcodeigniter_nginx
location /codeigniter_playground/codeigniter_nginx {
# root “H:/work/web”;
alias “H:/work/web/codeigniter_playground/codeigniter_nginx”;
index index.php;
try_files $uri $uri/ /codeigniter_playground/codeigniter_nginx/index.php;
location ~ .php$ {
root “H:/work/web/codeigniter_playground/codeigniter_nginx”;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
NGINX Beginners Book :
https://amzn.to/2HAWVDr
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission.
#RYUDITHTUTORIAL
source