Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the return value #32

Open
zhaozhihao59 opened this issue Mar 16, 2017 · 0 comments
Open

How to change the return value #32

zhaozhihao59 opened this issue Mar 16, 2017 · 0 comments

Comments

@zhaozhihao59
Copy link

zhaozhihao59 commented Mar 16, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant