How to disable php support in one of virtual hosts?

#1
Is it possible to disable php support only for one virtual host? I've searched the forum, but didn't find anything on this topic. I suppose it's shouldn't be complicated, maybe some Rewrite rules. Will apriciate any help.
 

IrPr

Well-Known Member
#6
block *.php with rewrite rule, or change .php MIME type to text/html.

Thanks for reply George,
First i tried php_admin_flag engine off in VirtualHost section in httpd.conf without any effect and the same with .htaccess while i'd read here about php_* directive support by LS in httpd.conf and .htaccess :confused:

BTW i did tried rewrite trick and works like a charm, but i had to disable AllowOverride also
 

mistwang

LiteSpeed Staff
#7
the "php_value engine off" is Apache specific not supported in PHP core. We may add LSAPI PHP support for this feature in the future.
 

IrPr

Well-Known Member
#8
the "php_value engine off" is Apache specific not supported in PHP core. We may add LSAPI PHP support for this feature in the future.
It would be nice to support that feature

Another great feature may be implemented is that httpd.conf VHosts loads in VHosts section in LSWS admin interface, then it can be fully editable, such as LS main VHosts

Thanks
 
Top