Change php version under var/www/html

Using the virtualhosts module is the recommended way.
A name reverse proxy should work in this case.
Could you please share your virtualhost and reverse proxy settings?

You could create a custom httpd conf file /etc/httpd/conf.d/custom.conf with following content:

<Directory /var/www/html/myprograms>
    AddType application/x-httpd-php .php
    <FilesMatch \.php$>
         SetHandler "proxy:fcgi://127.0.0.1:9003"
    </FilesMatch>
    AllowOverride All
    Require all granted
</Directory>

This way PHP7.3 is used for /var/www/html/myprograms.
nethserver-rh-php73-php-fpm needs to be installed.

7 Likes