Nginx, SemanticScuttle

Il file di configurazione per "SemanticScuttle": /etc/nginx/scuttle.conf

 

location /lnks {
  try_files $uri $uri/ /index.php;
  #index index.php;

  #location ~ \.php(/.*)?$ {
  #location ~ \.php(?:$|/) {
  location ~ ^/.*.php {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    #try_files $uri =404;
    fastcgi_pass   unix:/var/run/php5-fpm.sock;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include /etc/nginx/fastcgi_params;
    fastcgi_param  PATH_INFO $fastcgi_path_info;
    #set $path_info $fastcgi_path_info;
    #fastcgi_param  PATH_INFO  $path_info;
    fastcgi_index  index.php;
    fastcgi_param  HTTPS on;
    #fastcgi_param  modHeadersAvailable true;
  }

}


#location /lnks/www {
#  try_files $uri $uri/;
#
#  location ~ \.php(?:$|/) {
#    fastcgi_split_path_info ^(.+\.php)(/.+)$;
#    fastcgi_pass   unix:/var/run/php5-fpm.sock;
#    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
#    include /etc/nginx/fastcgi_params;
#    fastcgi_param  PATH_INFO $fastcgi_path_info;
#    fastcgi_param  HTTPS on;
#    fastcgi_param  modHeadersAvailable true;
#  }
#
#}


## Block access to data folders
#location ~ /lnks/(data|src)/ {
#  deny all;
#}