• 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

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