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経由ですべてのユーザーのホームディレクトリにある1つのフォルダへのアクセスを許可しようとしています.
location /home/*/share{ }
アスタリスク*は機能しませんが、Apache では機能しました。誰かがワイルドカードまたは正規表現を教えてもらえますか?
*
前もって感謝します
あなたが書いた方法/は、が複数回現れる可能性があることを意味します。つまり/home///////share、それを修正するには、次のように書きます
/
/home///////share
location ~ /home/[^/]+/share { }