Nginx, Kanboard

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

 

location /kanboard {
  error_page 404 /404.html;
  error_page 500 502 503 504 /50x.html;

  try_files $uri $uri/ =404;
}


location ~ /kanboard/.+\.php$ {
  try_files $uri =404;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass   unix:/var/run/php5-fpm.sock;
  fastcgi_index  index.php;
  fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include /etc/nginx/fastcgi_params;
  #fastcgi_param  QUERY_STRING     $query_string;
  #fastcgi_param  REQUEST_METHOD   $request_method;
  #fastcgi_param  CONTENT_TYPE     $content_type;
  #fastcgi_param  CONTENT_LENGTH   $content_length;
  #fastcgi_intercept_errors        on;
  #fastcgi_ignore_client_abort     off;
  #fastcgi_connect_timeout 60;
  #fastcgi_send_timeout 180;
  #fastcgi_read_timeout 180;
  #fastcgi_buffer_size 128k;
  #fastcgi_buffers 4 256k;
  #fastcgi_busy_buffers_size 256k;
  #fastcgi_temp_file_write_size 256k;
}


# Block access to data folders
location ~* /kanboard/data/ {
  deny all;
}

# Block access to .htaccess files
location ~ /\.ht {
  deny all;
}