Disabeling PHP for one subdomain

k1l0b1t

Verified User
Joined
May 10, 2020
Messages
526
Location
Belgium
I wanted to disable PHP for a single subdomain (no-php.domain.com). I use the following code in the custom httpd.conf field for that domain:

Code:
|*if SUB="no-php"|
|?PHP=OFF|
|*endif|

except... it's not working, I'm using PHP-FPM
 
Last edited:
yeah, It didn't help

Somehow I remember myself doing the trick with the |?PHP=OFF| ages ago (also using php-fpm), well whatever, I just created that subdomain as it's own domain, and disabled php there.

It might be a nice feature to the per-sub php version selection though: Any of the installed php versions, or off.
 
Back
Top