disbale php

Alborz

Active Member
#1
Hi guys,
Happy new year!

How can I disable php in a vhost?
I disable it with adding this line to httpd.conf:
php_flag engine off
but it can be overridden in .htaccess
I am using cpanel and last enterprise lsws

Thanks
 

Alborz

Active Member
#3
This is in my vhost:
Code:
UseCanonicalName Off
AllowOverride -Options
RemoveHandler cgi-script .cgi .pl .plx .ppl .perl
php_flag engine off
.htaccess still can set engine on

Thanks
 
Top