Codeigniter + Nginx configuration on Ubuntu 16.04

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=9ELQS078pDM



Duration: 6:28
9,609 views
33


i'm confused, when trying to migrate (codeigniter) from apache to nginx. Just so you know, Nginx not support .htaccess, huftt.

When i trying to open http://ci/contollers, it showing error, 404 not found.

i'm searching on google how to create 'rule' like htacess, and i got it.., so i create 'rule' on nginx server block (file : /etc/nginx/sites-available/default) .. restart nginx and ci works!

---
see this video for details.




Other Videos By Ambar Hasbiyatmoko


2017-04-14Samba (Centos 7) - install and share folder from centos 7 to windows 7
2017-04-13Setting codeigniter in subfolder on nginx (ubuntu 16.04)
2017-04-12Codeigniter error (ubuntu) - mysqli::real connect: HY000/1698: Access denied user 'root'@'localhost'
2017-04-12Codeigniter (Ubuntu 16.04) - The Encrypt library requires the Mcrypt extension.
2017-04-11Install Android Studio on Ubuntu 16.04
2017-04-10Samba (centos - windows7) : Windows cannot access centos. You do not have permission to access.
2017-04-10Displaying PHP errors when : The localhost page isn’t working (on Ubuntu)
2017-04-08Virtualbox - Port forward web server (guest to host)
2017-04-07Slick jquery slider - Fix image width
2017-04-05Virtualbox on centos 7 - Kernel driver not installed (rc=-1908)
2017-04-04Codeigniter + Nginx configuration on Ubuntu 16.04
2017-04-04install nginx + php5.6 on Ubuntu 16.04
2017-04-03Virtualbox error - Failed to create the hard disk storage, with UUID already exists
2017-04-03Mariadb (Ubuntu) - ERROR 1698 (28000): Access denied for user 'root'@'localhost'
2017-04-02Virtualbox on Centos 7 - No package kernel-devel-3.10.0-327 available.
2017-03-31Install virtualbox on Centos 7
2017-03-28Ubuntu, Pgadmin(delete DB) - An error has occurred: database is being accessed by other users.
2017-03-27Wordpress (https error) - mixed content was loaded over https but requested an insecure script
2017-03-23Virtualbox error - failed to install the extension pack
2017-03-22Javascript Tutorial - How to get object length
2017-03-22Virtualbox problem - no devices available (usb devices - flashdisk)



Tags:
codeigniter
nginx
framework
web
server
configuration
setting
ubuntu
rule
htaccess
localhost
virtualhost
rewrite
allowoverride all