1
nginx構成ファイルの長い行を分割する
ガベージをバックエンドに渡さないために、locationディレクティブに厳密な正規表現があります。次のようになります。 location ^~ "/(some|stuff|more|bar|etc(-testing)?)/[a-zA-Z0-9]+/...(more|restrict).ext { # other directives } 80文字で行を折りたいのですが、構成を分割する方法はありますか?以下は構文エラーになりますが、私が探しているものです: location ^~ "/(some|stuff|more|bar|etc(-testing)?)/[a-zA-Z0-9]+/"\ "...(more|restrict).ext" { # results in a literal newline (%0A) being accepted location ^~ "/(some|stuff|more|bar|etc(-testing)?)/[a-zA-Z0-9]+/ ...(more|restrict).ext" { ドキュメントにヒントを見つけることができませんでした(http://wiki.nginx.org/ConfigNotationもhttp://wiki.nginx.org/HttpCoreModule#locationには折り畳み線に関する記述があります)