-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Varnish configuration to make Symfony routing behave #2857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
.. note:: | ||
|
||
Remember to set framework.trust_proxy_headers: true in Symfony configuration for this to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the Symfony configuration
------------------ | ||
|
||
To ensure that the Symfony Router generates urls correctly with Varnish, proper ```X-Forwarded``` headers must be added. Headers depend on how you have configured hosts and ports for the web server and Varnish but this example should work if the web server is using the same IP as Varnish but a different port (e.g. 8080). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should wrap your lines after the first word that crosses the 72th character
|
||
.. note:: | ||
|
||
Remember to set framework.trust_proxy_headers: true in the Symfony |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should set framework.trust_proxy_headers: true into double backticks: framework.trust_proxy_headers: true
… non-deprecated trusted_proxies config in forwarded headers docs
Relates to discussion in this issue