![]() |
CI on NginX - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: CI on NginX (/showthread.php?tid=60080) |
CI on NginX - El Forum - 01-11-2014 [eluser]anishpsla[/eluser] I am facing a strange problem. I transfer all files into the production server. Which is a NginX server on Ubuntu. Now I am facing a strange problem. When I try to access controller other than the default controller, the page redirect to root. I install the application on CI folder. I change the configuration file. Still it redirect to / of the server. eg: http://domain/ci and http://domain/ci/index.php -> display the default controller. http://domain/[any controller] -> redirect to root (http://domain/) of the webserver My development server is IIS 7.5 express on Windows XP (Works great. Super fast and easy to setup). CI on NginX - El Forum - 01-15-2014 [eluser]Flemming[/eluser] Not sure how helpful this answer will be but I'll do it anyway. I don't use NginX personally but I have had to put a CI site onto a server running NginX and the only problem I encountered was that I couldn't use my normal mod_rewrite rules. Could that explain the problem you're experiencing? (certainly sounds like it) CI on NginX - El Forum - 01-15-2014 [eluser]anishpsla[/eluser] Finally I sort out the problem. It's the problem related to NginX configuration. The problem was 404 error will redirect to webroot. Can you help me in this matter http://ellislab.com/forums/viewthread/241266/ |