• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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