Skip to content

Commit

Permalink
if_not_empty flag for PATH_INFO Nginx fastcgi_param
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuelke committed May 19, 2014
1 parent 3d19023 commit a717b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/nginx/heroku.conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# try_files resets $fastcgi_path_info, see http://trac.nginx.org/nginx/ticket/321, so we use the if instead
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_INFO $fastcgi_path_info if_not_empty;

if (!-f $document_root$fastcgi_script_name) {
# check if the script exists
Expand Down

0 comments on commit a717b56

Please sign in to comment.