• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Question what all needs to be done to parse html as php?

larryk

Regular Pleskian
hello,
lets say I created a brand new domain and wanted a .html page to run as a .php page, what would I need to do to make that happen? I have the follow ing done:

it works on one site, but doesn't on another site :(
I have something wrong, but don't know what???

thanks



OS ‪CentOS Linux 7.2.1511 (Core)‬
Product Plesk Onyx
Version 17.0.17 Update #28, last updated on June 16, 2017 03:20 AM

PHP Settings page
FPM application served by nginx

Additional directives
[php-fpm-pool-settings]
security.limit_extensions = .php .html .htm

Apache & nginx Settings page
nginx settings
-- nothing is checked


Additional nginx directives

location ~ \.html(/.*)?$ {
fastcgi_split_path_info ^((?U).+\.html)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass "unix:///var/www/vhosts/system/domain.com/php-fpm.sock";
include /etc/nginx/fastcgi.conf;
}
 
Back
Top