Anyone use CI with Nginx? |
[eluser]Zack Kitzmiller[/eluser]
[quote author="John Fuller" date="1220685932"][quote author="Popcorn" date="1220684667"]http://blog.skateinmars.net/post/2007/09/03/Setup-CodeIgniter-on-Nginx-server-with-fastcgi Try this one.[/quote] Yeah, thanks. That is how I found the thread that I linked to in my second post. I suppose I should have mentioned that. ![]() I really hate configuring web servers. Actually, I think I hate administration in general. I spend more time screwing with servers than I do actually coding.[/quote] That is exactly the reason why we started CloudIgniter. It let's developers get back to developing.
[eluser]Sire[/eluser]
[quote author="kylemac" date="1273189259"]Hey all, this may be an old post - but it comes up quite high in the google search so I thought I might mention that some of what you guys are doing can now be handled natively by nginx. Pay attention to the location block. Code: ... Here is the nginx documentation of try_files - http://wiki.nginx.org/NginxHttpCoreModule#try_files[/quote] This didn't work for me, but I wanted to use try_files and tested a few options. Here's what I have so far... Code: server { The file /maintenance.html doesn't usually exist, but if I want to bring the site down temporarily while I work on it, all I have to do is create maintenance.html in the web root and it will be displayed to users until it is removed.
[eluser]Unknown[/eluser]
[quote author="kylemac" date="1273189259"]Hey all, this may be an old post - but it comes up quite high in the google search so I thought I might mention that some of what you guys are doing can now be handled natively by nginx. Pay attention to the location block.[/quote] I will go ahead and use the same excuse for posting here ![]() Now i wanted to do a proper config for codeigniter that did not use any Ifs whatsoever, because Ifs are evil, and worked using PATH_INFO to mix segmented URLs and querystrings. These were made using CodeIgniter 2.0, and haven't tested them using 1.7.2, but should work Code: server {
[eluser]Sulik[/eluser]
[quote author="Kenzie" date="1240193909"]Here's what I've found to work best: Code: server { (Tested with Nginx 0.6.3, CodeIgniter 1.7.1)[/quote] thank you! this workts like a charm! thanks
|
Welcome Guest, Not a member yet? Register Sign In |