![]() |
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.
|
Go into setting of vhost and make "Enable Script" set to "No".
|
tnx again. it what i wanted. ;)
|
Quote:
|
block *.php with rewrite rule, or change .php MIME type to text/html.
|
Quote:
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 |
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.
|
Quote:
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 |
Quote:
|
| All times are GMT -7. The time now is 12:34 PM. |