Details
-
Improvement
-
Resolution: None
-
High
-
5.0, 5.1
-
None
-
None
Description
We currently provide two different front controllers: index.php and index_dev.php, however, those requires some editing for fine tuning.
It is normally possible to get rid of those files while having only one.
Environment variable would be used to configure front controller's behaviour, example:
# Environment. # Possible values: "prod", "dev" or custom value # In case of custom value ezpublish/config/config_<env>.yml & # ezpublish/config/ezpublish_<env>.yml needs to be created. # Defaults to "prod" if omitted SetEnv ENVIRONMENT "prod" # Whether to use Symfony's ApcClassLoader. # Possible values: 0 or 1 # Defaults to 0 if omitted #SetEnv USE_APC_CLASSLOADER 0 # Prefix used when USE_APC_CLASSLOADER is set to 1. # Use a unique prefix in order to prevent cache key conflicts # with other applications also using APC. # Defaults to "ezpublish" if omitted #SetEnv APC_CLASSLOADER_PREFIX "ezpublish" # Whether to use debugging. # Possible values: 0 or 1 # Defaults to 0 if omitted, unless ENVIRONMENT is set to: "dev" #SetEnv USE_DEBUGGING 1 # Whether to use Symfony's HTTP Caching. # Disable it if you are using an external reverse proxy (e.g. Varnish) # Possible values: 0 or 1 # Defaults to 1 if omitted, unless ENVIRONMENT is set to: "dev" #SetEnv USE_HTTP_CACHE 0 # Whether to perform the `Request::trustProxyData()`. # Set to 1 if your application is behind a reverse proxy you manage and trust. # Possible values: 0 or 1 # Defaults to 0 if omitted #SetEnv TRUST_PROXY_DATA 0
Attachments
Issue Links
- relates to
-
EZP-20232 Add a note in virtual host about index_dev.php file
- Closed