View Full Version : How to disable php support in one of virtual hosts?
elvis7
02-03-2006, 03:39 AM
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.
Go into setting of vhost and make "Enable Script" set to "No".
elvis7
02-03-2006, 06:05 AM
tnx again. it what i wanted. ;)
Go into setting of vhost and make "Enable Script" set to "No".
And how to disable PHP/CGI/Perl Scripts on cPanel VHosts?
mistwang
10-31-2008, 01:18 PM
block *.php with rewrite rule, or change .php MIME type to text/html.
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
10-31-2008, 02:15 PM
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.
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
anewday
10-31-2008, 03:14 PM
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
I requested this earlier, hope he adds it soon. ;)