• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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