Instalasi simpleSAMLphp di Nginx

Perhatikan bagian location, kita perlu menambahkan informasi PATH_INFO, karena simpleSAMLphp memerlukan hal ini :

server{

listen 80;

server_name devidp.openthinklabs.com;

server_name devidp.openthinklabs.com;

access_log /var/log/nginx/devidp.openthinklabs.com.access_log;

error_log /var/log/nginx/devidp.openthinklabs.com.error_log;

location / {

root /home/www/devidp.openthinklabs.com;

index index.php index.html index.htm;

if (-f $request_filename) {

expires 30d;

break;

}

if (!-e $request_filename) {

rewrite ^(.+)$ /index.php?q=$1 last;

}

}

location ~ \.php$ {

fastcgi_pass 127.0.0.1:10000;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME /home/www/devidp.openthinklabs.com$fastcgi_script_name;

include fastcgi_params;

fastcgi_split_path_info ^(.+\.php)(/.+)$ ;

fastcgi_param PATH_INFO $fastcgi_path_info;

}

}