Results 1 to 2 of 2

Thread: Sethandler in htaccess with php-fpm

  1. #1
    Join Date
    Jul 2018
    Posts
    1

    Sethandler in htaccess with php-fpm

    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?

  2. #2
    Join Date
    May 2008
    Posts
    698
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •