Skip to content

How to change the return value #32

@zhaozhihao59

Description

@zhaozhihao59

hello :

this is my conf

location /upload{
            root  /usr/local/software/appstorm;
           #rewrite ^upload/(.*)$ /usr/local/nginx/html/$1 last;
            #root /usr/local/nginx/html;
            index index.html index.htm;
     }


    location / {
        set $clientId $arg_clientId;
        set $id $arg_id;
        #set_quote_sql_str  $quoted_clientId $clientId;
        #set_quote_sql_str $quoted_id $id;
        #drizzle_query "select * from t_upgrade_user";
        drizzle_query "INSERT INTO t_upgrade_user(p_client_id,p_lib_id) values('$clientId','$id')";
        drizzle_pass mysqlbackend;
        drizzle_module_header off;
        #rds_json on;
        #root   /usr/local/software/appstorm;
        #root /usr/local/nginx/html;
        #index  index.html index.htm;
        rewrite ^/(.*)$ /upload/$1 last;
    }

Can be successfully inserted into the MySQL database, but as you can see I do not want to insert the successful state returned to client. I want to get the download path for root.

What can I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions