Re: PHP handler for .html files - C7

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



Am 09.12.19 um 10:38 schrieb Gary Stainburn:
Morning all,

I am finally moving some old (F9 thru F17) servers to C7 (Plus PHP7/Pgsql10) boxes.  On the old boxes they all had it set so that .htm and .html files were handled by PHP in addition to the normal .php files.

This was done with the simple change to:

AddHandler php5-script .php .htm .html
AddType text/html .php .htm .html

in /etc/httpd/conf.d/php.inc. I did the same on my first new server but found that this did not work, and the login.html did not get handled.  I then added it to fine filematch so my full php.conf on the new box is:

<Files ".user.ini">
     <IfModule mod_authz_core.c>
         Require all denied
     </IfModule>
     <IfModule !mod_authz_core.c>
         Order allow,deny
         Deny from all
         Satisfy All
     </IfModule>
</Files>
AddType text/html .php .htm .html
DirectoryIndex index.php
<IfModule  mod_php7.c>
     <FilesMatch \.(php|phar|htm|hml)$>

Typo:                             ^^^^^?

--
Leon
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux