Skip to content

Instantly share code, notes, and snippets.

@mpchadwick
Created November 12, 2018 02:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpchadwick/ea7fb4ceecb230881a70094ab6082a76 to your computer and use it in GitHub Desktop.
Save mpchadwick/ea7fb4ceecb230881a70094ab6082a76 to your computer and use it in GitHub Desktop.
<Proxy "fcgi://127.0.0.1:9000">
ProxySet responsefieldsize=16384
</Proxy>
<FilesMatch \.php$>
SetHandler proxy:fcgi://127.0.0.1:9000
</FilesMatch>
@mrpatrick
Copy link

Hey - I'm also not able to get this to work. Have you found a solution?

@Navi2016
Copy link

Navi2016 commented Sep 21, 2020

Shoulden't the syntax be like:

<FilesMatch \.(php|phar)$>
        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>

<Proxy "fcgi://localhost/" responsefieldsize=40960>
</Proxy>

Could be that both syntaxes work fine to set the option.

Will try this out later tonight.

Edit: Does not seem to solve the Premature end of script headers errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment