Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望通过 nginx 授予对每个用户主目录中一个文件夹的访问权限,
location /home/*/share{ }
星号*不起作用,但在 Apache 中起作用。有人可以告诉我通配符或正则表达式吗?
*
提前致谢
你写它的方式意味着它/可能会出现多次,即/home///////share修复它写一些像
/
/home///////share
location ~ /home/[^/]+/share { }