View Single Post
  #2  
Old 31st December 2012, 14:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you try this instead?

Code:
location /concrete5 {
  root /path/to/concrete5;
  index  index.html index.htm index.php;
  if (!-f $request_filename){
    set $rule_0 1$rule_0;
  }
  if (!-d $request_filename){
    set $rule_0 2$rule_0;
  }
  if ($rule_0 = "21"){
    rewrite ^/(.*)$ /index.php/$1 last;
  }

  location ~ \.php($|/) {
    try_files $uri =404;
    set  $script     $uri;
    set  $path_info  "";
    if ($uri ~ "^(.+\.php)(/.+)") {
      set  $script     $1;
      set  $path_info  $2;
    }
    fastcgi_pass unix:php5-fpm-sock;
    fastcgi_index  index.php;
    include /etc/nginx/fastcgi_params;
    fastcgi_param  URI $uri;
    fastcgi_param  PATH_INFO        $path_info;
    fastcgi_param  SCRIPT_NAME      $script;
    fastcgi_param  SCRIPT_FILENAME  /path/to/concrete5$script;
  }
}
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote