Skip to content

Commit df11b5b

Browse files
authored
Merge pull request #7241 from kenjis/docs-environments.rst
docs: improve environments.rst
2 parents 6526113 + 5acce4d commit df11b5b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

user_guide_src/source/general/environments.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ The simplest method to set the variable is in your :doc:`.env file </general/con
4848
Apache
4949
------
5050

51-
This server variable can be set in your ``.htaccess`` file or Apache
52-
config using `SetEnv <https://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv>`_.
51+
This server variable can be set in your **.htaccess** file or Apache
52+
config using `SetEnv <https://httpd.apache.org/docs/2.4/mod/mod_env.html#setenv>`_.
5353

5454
.. code-block:: apache
5555
@@ -58,11 +58,11 @@ config using `SetEnv <https://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv>
5858
5959
.. _environment-nginx:
6060

61-
nginx
61+
Nginx
6262
-----
6363

64-
Under nginx, you must pass the environment variable through the ``fastcgi_params``
65-
in order for it to show up under the `$_SERVER` variable. This allows it to work on the
64+
Under Nginx, you must pass the environment variable through the ``fastcgi_params``
65+
in order for it to show up under the ``$_SERVER`` variable. This allows it to work on the
6666
virtual-host level, instead of using `env` to set it for the entire server, though that
6767
would work fine on a dedicated server. You would then modify your server config to something
6868
like:
@@ -80,7 +80,7 @@ like:
8080
}
8181
}
8282
83-
Alternative methods are available for nginx and other servers, or you can
83+
Alternative methods are available for Nginx and other servers, or you can
8484
remove this logic entirely and set the constant based on the server's IP address
8585
(for instance).
8686

@@ -102,17 +102,17 @@ a fresh install:
102102
* production.php
103103
* testing.php
104104

105-
Effects On Default Framework Behavior
105+
Effects on Default Framework Behavior
106106
=====================================
107107

108-
There are some places in the CodeIgniter system where the ENVIRONMENT
108+
There are some places in the CodeIgniter system where the ``ENVIRONMENT``
109109
constant is used. This section describes how default framework behavior
110110
is affected.
111111

112112
Error Reporting
113113
---------------
114114

115-
Setting the ENVIRONMENT constant to a value of ``development`` will cause
115+
Setting the ``ENVIRONMENT`` constant to a value of ``development`` will cause
116116
all PHP errors to be rendered to the browser when they occur.
117117
Conversely, setting the constant to ``production`` will disable all error
118118
output. Disabling error reporting in production is a

0 commit comments

Comments
 (0)