Mojoliciousをちょっと使ってて覚えたことをメモ。 まずリダイレクトではまった Apache(mod_proxy)+Mojolicious(daemon_prefork)の構成 ProxyRequests Off ProxyVia On ProxyPass /hoge/ http://localhost:3000/ ProxyPassReverse /hoge/ http://localhost:3000/ 上記のように設定して、http://example.com/hoge/をhttp://example.com/hoge/fuga/xxxxxにredirectしようとredirect_toを使ったら、http://example.com/fuga/xxxxxにredirectされた。 原因はMojoliciousのredirect_toが吐き出すLocation headerが