VirtualHost on Apache 2.4 with PHP-FPM Getting proxy_fcgi:error


November 2018


2.1k time


I am trying to make a VirtualHost for my Wordpress project that's being hosted on a EC2 Instance by Apache 2.4 with PHP-FPM. Most of the resources being loaded (mostly scripts and other php) are getting a 404 Error and when I look in the error log for the virtual host, I get the following errors

[Tue Mar 17 01:01:56.026492 2015] [proxy_fcgi:error] [pid 3382] (22)Invalid argument: [client] AH01075: Error dispatching request to : (passing brigade to output filters), referer:
[Tue Mar 17 01:01:56.816915 2015] [proxy_fcgi:error] [pid 2895] [client] AH01068: Got bogus version 116, referer:

Below is my Virtual Host portion of the conf

<VirtualHost *:80>
        DocumentRoot /var/www/html/project

        ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://$1

        <Directory /var/www/html/project>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted

        ErrorLog /var/www/html/project/logs/error.log

And below is the address portion of the php-fpm configuration.

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
;   ''    - to listen on a TCP socket to a specific address on
;                            a specific port;
;   'port'                 - to listen on a TCP socket to all addresses on a
;                            specific port;
;   '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen =

Please HELP! I have looked everywhere and can not find a solution. I am allowing all traffic to all ports from EC2, I tried all kinds of combinations for different apache Directives, and I even tried to add the js|html and all that stuff to the ProxyPassMatch.

What is causing this? Help is greatly appreciated.

0 answers