Plesk Custom File Extension Support

Plesk Custom File Extension Support

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.


    • Related Articles

    • Plesk services logs and configuration files

      Plesk services logs and configuration files Plesk Logs Error log: /var/log/sw-cp-server/error_log Access log: /var/log/plesk/httpsd_access_log Panel log: /var/log/plesk/panel.log Configuration PHP config on RHEL-based: ...
    • Block brute force attack from Plesk firewall

      Block brute force attack from Plesk firewall Issue: SMTP service has been receiving unauthorised brute force requests on the server Update 1: Below logs have been found from the maillog on the server May 15 12:13:44 host plesk_saslauthd[11425]: No ...
    • Important Plesk CLI Commands

      Important Plesk Linux CLI Commands If Plesk throws an error, these logs will help. /usr/local/psa/var/log /opt/psa/admin/logs /var/log/sw-cp-server/error_log /usr/local/psa/admin/logs/panel.log /usr/local/psa/admin/logs/httpsd_access_log ...
    • Plesk compatibility mode for legacy option

      Plesk compatibility mode for legacy option (Separate SSL/TLS and non-SSL/TLS content) Problem: Opening the website with https shows a default placeholder page as given below: “This is the placeholder for domain <domain name>. If you see this page ...
    • Enable Google Authenticator with Plesk

      Enable Google Authenticator with Plesk Objective: This extension offers additional user account protection with multi-factor authentication. After enabling Google Authenticator, a second step is added to the Plesk login procedure: in addition to ...