0

How do I proxy a file in Apache based on its MIME type? I want to use PHP-FPM with FastCGI but the recommended solution using ProxyPassMatch is clunky, a pain to work with, and all around unfavorable. How would I go about proxying based on MIME type instead?

robbie
  • 101

1 Answers1

0

You can also use the handler method (2.4.10 onwards):

<FilesMatch \.php>
    SetHandler  "proxy:unix:/path/to/app.sock|fcgi://localhost/"
</FilesMatch>
ezra-s
  • 2,215
  • 1
  • 7
  • 13