Skip to content
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

Document how to configure an app behind a load balancer or a reverse proxy #2491

Closed
fabpot opened this issue Apr 12, 2013 · 3 comments
Closed
Labels
actionable Clear and specific issues ready for anyone to take them. HttpFoundation

Comments

@fabpot
Copy link
Member

fabpot commented Apr 12, 2013

A lot of people have problems when their app is behind a load balancer or a reverse proxy: they don't have the right HTTP port, or isSecure does not return the right value.

We should probably have a dedicated cookbook about this topic and how you can use Request::setTrustedHeaderName(), Request::setTrustedProxies(), the HTTP(S) port configuration in the settings, ...

@joostshao
Copy link

First Sorry , Handsome, i clicked the [Report Abuse] for a mistake , beg for pardon, Sorry !!!!!!
555555555
Next Content:
2013-04-17 10:30:22

Symfony Version is 2.2, with Chrome,Charact is UTF-8, there is a 500 , 500 Internal Server Error - ServiceException, Why i can not see the Chinese ? instead of wrong code ?
miss some compoents ?
I Want to slove it...

@cordoval
Copy link
Contributor

cordoval commented Jan 6, 2014

@joostshao please remove your comment. It has nothing to do with the issue at hand. Thanks.

weaverryan added a commit that referenced this issue Aug 8, 2014
…rk (weaverryan)

This PR was merged into the 2.3 branch.

Discussion
----------

Adding a new entry about reverse proxies in the framework

Hi guys!

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | no
| Applies to    | all (or 2.3+)
| Fixed tickets | #2946 #2491

Per #2491, I wanted to answer the simple question: "What do I need to do in order to configure Symfony if I have a reverse proxy". The `trusted_proxies` is already documented in the reference section, but this is a full walk-through of what you should be doing and why. I've also increased links in several places where notes are needed.

Thanks!

Commits
-------

5ab6c4a Title case fix thanks to @xabbuh!
89e4d9d A bunch of changes thanks to @xabbuh and @stof
81053ab Fixing build error
c55bc2e Adding another note about how AppCache is a reverse proxy at the IP address 127.0.0.1
18af4e8 Adding a new entry about reverse proxies in the framework and linking to it in many places
@weaverryan
Copy link
Member

Done, finally! Apologies for the delay - this was indeed something we needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. HttpFoundation
Projects
None yet
Development

No branches or pull requests

4 participants