Welcome Guest, Not a member yet? Register   Sign In
Nginx + PHP 7 + CI 3
#1

Hi.

Does anyone have an nginx config file for PHP 7 + CI 3?

If I do:

http://www.foo.dev/index.php/Campaigns

This works fine.

But if I do:

http://www.foo.dev

I get a 404.

I'm upgrading a V2.14 application to the current 3.x and I haven't developed in PHP in 6 months and forgotten all the little issues!

Thanks Dodgy
Reply
#2

http://www.foo.dev/index.php
http://www.foo.dev/index.php/

Do these work?
Reply
#3

did you specified a default route ? this route is still available ?
Reply
#4

Add this line to your nginx server part:


location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?q=$uri&$args;
}

Works!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB