drizzle-nginx-module icon indicating copy to clipboard operation
drizzle-nginx-module copied to clipboard

How to change the return value

Open zhaozhihao59 opened this issue 7 years ago • 0 comments

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?

zhaozhihao59 avatar Mar 16 '17 05:03 zhaozhihao59