1 bootstrap.inc | backdrop_is_nginx() |
Checks whether Backdrop is running under Nginx.
@since 1.9.2
Return value
bool: TRUE if Backdrop is running under Nginx, FALSE if not.
File
- core/
includes/ bootstrap.inc, line 830 - Functions that need to be loaded on every Backdrop request.
Code
function backdrop_is_nginx() {
$server_software = $_SERVER['SERVER_SOFTWARE'];
return (bool) preg_match("/nginx/i", $server_software);
}