Re: http2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

First Frank thanks. Switching from prefork to event, I can tell the difference.

I've got working http2 which is great!

I disabled mod_php and enabled php-fpm, if I request a file:

test.example.com/file.php

works fine, if I just go to:

test.example.com

or really any other virtual host no filename, I get a 404 message page
not found.

I've tried adding this one line to each of my vhosts that have php content:

ProxyPassMatch ^/(.*\.php)$
fcgi://127.0.0.1:9000/usr/vhosts/example.com/htdocs/$1

as I said with a file after the hostname that works, without one a
404. I then commented out the above and added in a separate include
file with:

# Use SetHandler on Apache 2.4 to pass requests to PHP-FPM
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>


Any idea what I'm doing wrong, i'd love to get the combination of
apache 2.4, php-fpm, and http2 working as even with just the event mpm
i'm already seeing great performance improvements.

Thanks.
Dave.


On 3/28/18, Frank Gingras <thumbs@xxxxxxxxxx> wrote:
> You need to use a threaded mpm (event or worker) to support http2.
>
> Additionally, you need to configure httpd to use fcgi to process php
> content. See http://wiki.apache.org/httpd/php
>
> The simplest approach will likely to use mod_proxy_fcgi and php-fpm pools.
>
> On Wed, Mar 28, 2018 at 12:17 PM, David Mehler <dave.mehler@xxxxxxxxx>
> wrote:
>
>> Hello,
>>
>> Currently I'm running Apache 2.4, openssl, Php 5.6, mod_php, and with
>> apache the prefork mpm. my mpm from prefork to either worker or event.
>> What is the difference between these two mpms? It appears i'm also
>> going to have to make a php change, threaded php, should I move to
>> php7, does that have the option needed?
>>
>> Thanks.
>> Dave.
>>
>> I am wanting to implement http2. I know that I'll need to have to switch
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux