古のサーバーで下記のようなエラーが発生した。

[substitute:error]AH01328: Line too long, URI /XXXXXX.php, referer: https://example.com/

どうやら、Apacheの mod_substitute が原因のようだ。

下記の記事を参考に SubstituteMaxLineLength の設定を変更すると直った。

PI80106: 500 Internal error with AH01328: Line too long

SubstituteMaxLineLength 10m