-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/13/2015 02:53 PM, Rose, John B wrote:
> do the settings such as ...
>
> <FilesMatch \.php$> SetHandler application/x-httpd-php
> </FilesMatch>
>
>
> AddType text/html .php
>
> Etc,
>
> ...typically in the file named php.conf, matter if you do not have
> mod_php loaded and are only using PHP-FPM?
>
> What PHP related setting would you possibly put in php.conf if you
> are only using PHP-FPM?
>
Oh. Right. Yeah, you don't need that stuff at all any more, because
any *.php files are being proxied over to the php-fpm server, and will
never reach this FilesMatch block.
> In other words, by using PHP-FPM, and using ProxyPassMatch, none of
> those things are used. Right?
>
That is correct.
> Except "DirectoryIndex"
>
> Comment: It seems the default/uncommented placement of
> "DirectoryIndex index.php" in php.conf would
> undesirably/unexpectedly replace "DirectoryIndex index.html
> index.php etc." in the main body of your httpd.conf file. If you
> "Include" conf.d late in your httpd.conf file.
No. DirectoryIndex is cumulative. That is, see this section in the docs:
Note: Multiple DirectoryIndex directives within the same context will
add to the list of resources to look for rather than replace:
Which then gives the example of:
DirectoryIndex index.html
DirectoryIndex index.php
as being identical to
DirectoryIndex index.html index.php
- --Rich
- --
Rich Bowen - [email protected] - @rbowen
http://apachecon.com/ - @apachecon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlZGT5oACgkQXP03+sx4yJOXwQCeOUR18iTj1vajpJZA4ANw6RpL
R68AoIxyCTC6ITegSd4JMgCPUWx9mgSi
=TJJ/
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]