LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   How to disable php support in one of virtual hosts? (http://www.litespeedtech.com/support/forum/showthread.php?t=362)

elvis7 02-03-2006 03:39 AM

How to disable php support in one of virtual hosts?
 
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.

xing 02-03-2006 04:19 AM

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. ;)

IrPr 10-30-2008 10:40 AM

Quote:

Originally Posted by xing (Post 1708)
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.

IrPr 10-31-2008 01:24 PM

Quote:

Originally Posted by mistwang (Post 12240)
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.

IrPr 10-31-2008 02:25 PM

Quote:

Originally Posted by mistwang (Post 12243)
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

Quote:

Originally Posted by IrPr (Post 12244)
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. ;)


All times are GMT -7. The time now is 12:34 PM.