• 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 Disable PHP for a Domain?

Azurel

Silver Pleskian
What is the correct way to disable PHP for a (CDN-)Domain?

Disable PHP in PHP-Settings ends with automatic download the php-file. I want PHP files in CDN, but I want something like a 404 or 403 by access. It should not execute and it should not download the php-file.

That is not working
<Directory /var/www/vhosts/example.com/httpdocs/>
php_admin_value engine Off
</Directory>
Error: 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
But I think this will end in download the php-file?
 
Last edited:
Probably in this form
<Directory /var/www/vhosts/example.com/httpdocs/>
<FilesMatch "\.php$">
Order allow,deny
Deny from all
</FilesMatch>
</Directory>
 
Last edited:
Back
Top