File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,13 @@ If the ``X-Forwarded-Port`` header is not set correctly, Symfony will append
3333the port where the PHP application is running when generating absolute URLs,
3434e.g. ``http://example.com:8080/my/path ``. To ensure that the Symfony router
3535generates 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
You can’t perform that action at this time.
0 commit comments