Skip to content

Commit 80387cf

Browse files
committed
Minor rewording
1 parent f11fe4f commit 80387cf

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

cookbook/cache/varnish.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ If the ``X-Forwarded-Port`` header is not set correctly, Symfony will append
3333
the port where the PHP application is running when generating absolute URLs,
3434
e.g. ``http://example.com:8080/my/path``. To ensure that the Symfony router
3535
generates URLs correctly with Varnish, add the correct port number in the
36-
``X-Forwarded-Port`` header.
37-
38-
This port depends on your setup. Let's say that external connections come in
39-
on the default HTTP port 80. For HTTPS connections, there is another proxy
40-
(as Varnish does not do HTTPS itself) on the default HTTPS port 443 that
41-
handles the SSL termination and forwards the requests as HTTP requests to
42-
Varnish with a ``X-Forwarded-Proto`` header. In this case, add the following to
43-
your Varnish configuration:
36+
``X-Forwarded-Port`` header. This port depends on your setup.
37+
38+
Suppose that external connections come in on the default HTTP port 80. For HTTPS
39+
connections, there is another proxy (as Varnish does not do HTTPS itself) on the
40+
default HTTPS port 443 that handles the SSL termination and forwards the requests
41+
as HTTP requests to Varnish with a ``X-Forwarded-Proto`` header. In this case,
42+
add the following to your Varnish configuration:
4443

4544
.. code-block:: varnish4
4645

0 commit comments

Comments
 (0)