title: AH00894: declining URL fcgi
body: <p>I'm trying to set up a server that parses .HTML file for PHP.</p>
  <pre><code>Operating System: Amazon Linux 2
  PHP version: 8.0.8
  Apache version: 2.4.51
  </code></pre>
  <p>/etc/httpd/conf.d/php.conf</p>
  <pre><code>#
  # Allow php to handle Multiviews
  #
  AddType text/html .php
  
  #
  # Add index.php to the list of files that will be served as directory
  # indexes.
  #
  DirectoryIndex index.php index.html
  
  #
  # Redirect to local php-fpm (no mod_php in default configuration)
  #
  # Enable http authorization headers
  SetEnvIfNoCase ^Authorization$ &quot;(.+)&quot; HTTP_AUTHORIZATION=$1
  
  &lt;FilesMatch \.(php|phar)$&gt;
      SetHandler &quot;proxy:unix:/run/php-fpm/www.sock|fcgi://localhost&quot;
  &lt;/FilesMatch&gt;
  </code></pre>
  <p>The change I'm making is adding HTML to the FilesMatch clause here:</p>
  <pre><code>&lt;FilesMatch \.(php|phar|html)$&gt;
      SetHandler &quot;proxy:unix:/run/php-fpm/www.sock|fcgi://localhost&quot;
  &lt;/FilesMatch&gt;
  </code></pre>
  <p>When I do that I see these errors:</p>
  <pre><code>
  [proxy_fcgi:debug] [pid 20974] mod_proxy_fcgi.c(1063): [client 1.1.1.1:49893] AH01078: serving URL fcgi://localhost/home/web-system-sites/dev.example.com/index.html
  [proxy:debug] [pid 20974] proxy_util.c(2528): AH00942: FCGI: has acquired connection for (*)
  [proxy:debug] [pid 20974] proxy_util.c(2583): [client 1.1.1.1:49893] AH00944: connecting fcgi://localhost/home/web-system-sites/dev.example.com/index.html to localhost:8000
  [proxy:debug] [pid 20974] proxy_util.c(2620): [client 1.1.1.1:49893] AH02545: fcgi: has determined UDS as /run/php-fpm/www.sock
  [proxy:debug] [pid 20974] proxy_util.c(2806): [client 1.1.1.1:49893] AH00947: connected /home/web-system-sites/dev.example.com/index.html to httpd-UDS:0
  [proxy:debug] [pid 20974] proxy_util.c(3177): AH02823: FCGI: connection established with Unix domain socket /run/php-fpm/www.sock (*)
  [proxy_fcgi:error] [pid 20974] [client 1.1.1.1:49893] AH01071: Got error 'Access to the script '/home/web-system-sites/dev.example.com/index.html' has been denied (see security.limit_extensions)'
  
  </code></pre>