• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Disable php in a specific directory

HubertP

New Pleskian
Hello,

I want to disable php for specific directory of my website.

For example the "media" directory.

I tried this in a htaccess file :
Code:
<Directory /var/www/vhosts/mydomaine.tls/httpdocs/medias/upload>
       RemoveHandler .php .phtml .php3
       RemoveType .php .phtml .php3
       php_flag engine off
</Directory>
but it doesn't work.

PHP support (Run PHP as Apache Module , PHP version 5.4.4 )

I tried in "Web Server Settings for > Additional directives for HTTP" but doesn't work :'(

Thank's for your help :)

Pierre-Louis Hubert
 
Back
Top