Skip to content

Instantly share code, notes, and snippets.

@sureshamk
Created April 21, 2015 10:28
Show Gist options
  • Save sureshamk/f07b98e197dfcbda7c0d to your computer and use it in GitHub Desktop.
Save sureshamk/f07b98e197dfcbda7c0d to your computer and use it in GitHub Desktop.
location /selfoss/ {
try_files $uri $uri/ @selfoss;
}
location @selfoss {
rewrite /selfoss/ /selfoss/index.php;
}
location ^/selfoss/index.php(/.*)?$ {
fastcgi_split_path_info ^(/selfoss/index.php)(/.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment