Sethandler in htaccess with php-fpm

tommykai0210

New member
Joined
Jul 11, 2018
Messages
1
Hi,

I've a customer that has this .htaccess:


<FilesMatch "(statistiche-mappa.js)|(statistiche-grafico.js)|(sessione.js)|(it.js)|(schede_istat.js)|(utenti.js)|(comuni.js)|(main.js)$">
SetHandler application/x-httpd-php
</FilesMatch>


This works with mod_php+mod_ruid, but doesn't work with php-fpm.

Do you know how this can work with php-fpm?
 
First make sure htscanner=yes in options.conf and rebuild.

After that, the php-fpm is not using application/x-httpd-php handler. It's something like this:

proxy:unix:/usr/local/php72/sockets/<USER>.sock|fcgi://localhost

Check out /usr/local/directadmin/data/users/<USER>/httpd.conf to see the exact handler for the specific user.
 
Back
Top