Home
Sign Up
Sign In
›
NGINX
›
NGINX Trac
›
3rd Party Modules
›
Security Advisories
›
CHANGES
›
OpenResty
›
ngx_lua
›
Tengine
在线学习资源
›
NGINX 开发从入门到精通
NGINX Modules
›
ngx_echo
V2EX
›
NGINX
nginx 如何把 location = /foo { } 和 location = /foo/ { } 合并成一个 location
FrankAdler
·
Nov 14, 2019
· 3621 views
This topic created in 2565 days ago, the information mentioned may be changed or developed.
希望如果访问 /foo 和 /foo/是同样的资源,其他的比如 /foo/xxx,/bar/xxx 都走另外的
foo
Location
XXX
Nginx
2 replies
•
2019-11-14 21:33:10 +08:00
junkun
Nov 14, 2019
1
"location ~ /foo/?" 这样吗,没怎么用过 nginx 但这好像是很基础的问题。
ysc3839
Nov 14, 2019 via Android
2
也许可以使用 try_files ?
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
5153 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms ·
UTC 02:03
·
PVG 10:03
·
LAX 18:03
·
JFK 21:03
♥ Do have faith in what you're doing.
❯