alibaba / alibaba/nginx-http-concat
配置项不能指定root目录吗?
Open
- Dominant language
- C
- Stars
- 863
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
我的静态文件分了好几个目录,想请求url为`http://127.0.0.1/static/??js/a.js,js1/b.js,js2/c.js`
然后配置location拦截/static/,但是我的目录js,js1,js2并不在static目录下面,所以想在location下面配置个root指定根目录,发现没有效果,请问现在是不允许或还不支持这么配置吗?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported configuration using the /static/ location and the separate js, js1, and js2 directories. Start by tracing how the module resolves requested file paths relative to an Nginx location and root setting; done means confirming whether this configuration is supported and documenting or implementing the expected path resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, nginx
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100