nginx - How to configure flask to read the secondary directory? ?
某草草
某草草 2017-05-16 17:10:25
0
1
442

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. .

某草草
某草草

reply all(1)
小葫芦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!