Skip to content

Commit

Permalink
- Fixed path info handling for Nginx/SCGI
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-beilis committed Mar 20, 2012
1 parent c6d5dbb commit 399555e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bin/cppcms_run
Original file line number Diff line number Diff line change
Expand Up @@ -323,20 +323,15 @@ elif [ "$API" == "scgi" ] ; then

cat >>$CONFIG_FILE <<EOF
set \$path_info "";
if ( \$document_uri ~ ^$SCRIPT(.*)\$ ) {
set \$path_info \$1;
}
location ~ ^$SCRIPT.*$ {
location ~ ^$SCRIPT(/.*)?$ {
scgi_pass $SERVICE_POINT;
scgi_param QUERY_STRING \$query_string;
scgi_param REQUEST_METHOD \$request_method;
scgi_param CONTENT_TYPE \$content_type;
scgi_param CONTENT_LENGTH \$content_length;
scgi_param SCRIPT_NAME $SCRIPT;
scgi_param PATH_INFO \$path_info;
scgi_param PATH_INFO \$1;
scgi_param REQUEST_URI \$request_uri;
scgi_param DOCUMENT_URI \$document_uri;
scgi_param DOCUMENT_ROOT \$document_root;
Expand Down

0 comments on commit 399555e

Please sign in to comment.