Hi again, Thanks, corrected the problem, it was something so simple I missed it at first. The mod_php configuration has index.php as an index type, remove that and I removed the index.php type so I added it in my php-fpm apache configuration and it worked. Again thanks, http2, event mpm, and I'm definitely seeing and getting reports, of a huge notice in performance gain. Thanks. Dave. On 3/29/18, David Mehler <dave.mehler@xxxxxxxxx> wrote: > Hi, > > Still getting the error "the requested url / was not found on this > server" when attempting to go to a virtual host like test.example.com > which gives me a 404 error. If I goto test.example.com/filename.php > works fine. > > Any ideas? > > Thanks. > Dave. > > > On 3/28/18, David Mehler <dave.mehler@xxxxxxxxx> wrote: >> 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