Welcome Guest, Not a member yet? Register   Sign In
Anyone use CI with Nginx?
#9

[eluser]vmirjamali[/eluser]
Will these work with routes and query off? atm i have to use something like this:
Code:
location / {
index index.php;
root /path/to/domain.net/httpdocs;

if (-f $request_filename) {
      expires 30d;
      break;
    }
if (!-e $request_filename) {
      rewrite . /index.php last;
    }

}

location ~ \.php$
{
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param  REQUEST_URI      $request_uri;
fastcgi_param SCRIPT_FILENAME /path/to/domain/httpdocs/index.php;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
}

For some reason though it causes my other directories like /forums/ to give 404's, any ideas?

I use the cache system on ci as well if that's neded.


Messages In This Thread
Anyone use CI with Nginx? - by El Forum - 09-05-2008, 06:59 PM
Anyone use CI with Nginx? - by El Forum - 09-05-2008, 08:01 PM
Anyone use CI with Nginx? - by El Forum - 09-05-2008, 08:04 PM
Anyone use CI with Nginx? - by El Forum - 09-05-2008, 08:25 PM
Anyone use CI with Nginx? - by El Forum - 09-05-2008, 10:40 PM
Anyone use CI with Nginx? - by El Forum - 10-04-2008, 10:54 PM
Anyone use CI with Nginx? - by El Forum - 04-19-2009, 07:18 PM
Anyone use CI with Nginx? - by El Forum - 07-13-2009, 01:44 PM
Anyone use CI with Nginx? - by El Forum - 08-10-2009, 03:53 PM
Anyone use CI with Nginx? - by El Forum - 05-06-2010, 12:40 PM
Anyone use CI with Nginx? - by El Forum - 05-06-2010, 05:35 PM
Anyone use CI with Nginx? - by El Forum - 05-24-2010, 10:11 PM
Anyone use CI with Nginx? - by El Forum - 11-24-2010, 04:34 PM
Anyone use CI with Nginx? - by El Forum - 02-28-2012, 08:20 PM
Anyone use CI with Nginx? - by El Forum - 02-28-2012, 10:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB