List of ENTITY sections
This list includes the ENTITY sections you can set to configure your PHP setup on a per Host or Path basis. These sections are optional.
These sections don't directly affect PHP. They are used to group other ENTITY directives together and to get them to act upon a particular host or on a particular path.
These sections are used only in CGI/FastCGI mode and they can not set extension and zend_extension directives.
Directives set in these sections cannot be overridden by .user.ini files or at runtime, like those set with php_admin_value.
Regardless of their order in ENTITY, [PATH=] takes precedence over [HOST=], and a deeper path over a shallower one. With PHP-FPM, these sections also take precedence over the pool configuration and FastCGI parameters, including php_admin_value and PHP_ADMIN_VALUE.
| ENTITY | ENTITY | ENTITY |
|---|---|---|
| [HOST=] | INI_SYSTEM |
|
| [PATH=] | INI_SYSTEM |
Sections
ENTITY
[HOST=ENTITYhostENTITY]
This section allows you to define a set of ENTITY directives that will take effect on the named host.
Activate full on-screen error reporting for dev. domain
[HOST=dev.site.com]
error_reporting = E_ALL
display_errors = On
[PATH=ENTITYpathENTITY]
This section allows you to define a set of ENTITY directives that will take effect when a script runs from the named path.
Add security script for protected areas
[PATH=/home/site/public/secure]
auto_prepend_file=security.php
谢谢你的反馈!