首先能看到问题的先说声谢谢大佬
nginx 能够动态重定向吗,比如
这是nginx 里面html目录
|-->html
|—> a_file
|—>static
|-->jquery.js
|—>ab_file
|—>ab_index.html
|—>b_file
|—>bb_file
访问路径root —>ab_index.html
原先访问的静态路径是localhost/static/jquery.js
但是这样访问不到静态文件,正确路径是localhost/上级目录/static/jquery.js
所以需要重定向修改静态文件地址localhost/a_file/static/jquery.js
想要动态重定向,a_file或者b_file或者n_file等
localhost/动态/static/jquery.js
localhost/b_file/static/jquery.js