nginx - How to configure flask to read the secondary directory? ?
某草草2017-05-16 17:10:25
0
1
473
uwsgi nginx flask deployed python script successfully. But it can only read the website directory /www. How to read, for example, the /www/data directory. .
I don’t know why, who reads it? nginx or flask? For static files, if you read them through nginx, just configure one more location. If the static file wants to be read through flask, it must be placed under static, or the file must be read through the absolute path through the dynamic request background, and then the file content must be returned.
I don’t know why, who reads it? nginx or flask? For static files, if you read them through nginx, just configure one more location. If the static file wants to be read through flask, it must be placed under static, or the file must be read through the absolute path through the dynamic request background, and then the file content must be returned.