Diadem Technologies Support Knowledgebase

Plesk Custom File Extension Support

Article ID: 1703
Last updated: 07 Feb, 2024

Plesk Custom File Extension Support

Issue: Problem with the ".htaccess" file and the "include" function, resulting in the top panel and footer not appearing on the website as the include files are not processed in the web server

Step 1: Navigate to the Hosting & DNS settings of the domain. Choose Apache & nginx, then scroll down to Additional Apache directives, depicted in the screenshot below, and add the following directives:

Additional Apache Directives:

<IfModule mod_proxy_fcgi.c>
    <Directory /var/www/vhosts/radharanimarbles.com/httpdocs/>
        <Files ~ .(?i:inc|html|htm)$>
            SetHandler proxy:unix:///var/www/vhosts/system/radharanimarbles.com/php-fpm.sock|fcgi://127.0.0.1:9000
        </Files>
    </Directory>
</IfModule>

Additional directives for HTTPS:

<IfModule mod_proxy_fcgi.c>
    <Directory /var/www/vhosts/radharanimarbles.com/httpdocs/radharaniwork>
        <Files ~ .(?i:inc|html|htm)$>
            SetHandler proxy:unix:///var/www/vhosts/system/radharanimarbles.com/php-fpm.sock|fcgi://127.0.0.1:9000
        </Files>
    </Directory>
</IfModule>

Step 2: Navigate to PHP settings and change "run PHP as" to FPM application served by nginx, as illustrated in the screenshot below:

Step 3: Scroll down to the Additional directives section and add the Additional configuration directives as mentioned below:

[php-fpm-pool-settings]
security.limit_extensions = .php .phar .html .inc

Step 4: After applying the settings, the top panel and footer will appear on the website.

This article was:  
Report an issue
Article ID: 1703
Last updated: 07 Feb, 2024
Revision: 6
Views: 281
Comments: 0
Tags