Skip to content

Deploy with Apache2 as a Reverse-Proxy #1341

Answered by pglombardo
OlafCIT asked this question in Q&A
Discussion options

You must be logged in to vote

Ok thanks for the information. If I understood correctly, I would just use Apache2 and let it talk directly to the backend container on 5100 over http.

I would also avoid using FORCE_SSL. That is a special case, breaks the Apache2 <--> 127.0.0.1:5100 communication and causes the redirect loop.

Instead make sure that the proxy (both Apache2 and nginx) both pass the X-Forwarded-Host, X-Forwarded-Port and X-Forwarded-Proto headers. This will tell the application how to generate secret URLs and to handle redirects.

Some proxy documentation is available here.

The SSL termination point should solely be your apache2 instance.

For reference, others have posted their Apache configs if you feel lik…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@OlafCIT
Comment options

@pglombardo
Comment options

Answer selected by pglombardo
@OlafCIT
Comment options

@pglombardo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Resolved The issue, question or bug has been resolved.
2 participants