Guys, sorry for the very very late reply from me. I didn't watch my email properly.
I solve the problem myself by reinstalling everything including the OS.
Actually after my problem I tried to setup moodle on Linux Mint 17, and it worked like a magic.
So then I reinstall my Debian with the same version, and Nginx with the same version.
Here's my configuration for moodle in Nginx :
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/moodle;
rewrite ^/moodle/(.*.php)(/)(.*)$ /moodle/$1?file=/$3 last;
index index.php index.html index.htm index.nginx-debian.html;
server_name localhost;
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}and for php.ini in PHP5-FPM i set cgi.fix_pathinfo=0.
And it worked too.
Anyway thanks everyone,