• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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