-
Notifications
You must be signed in to change notification settings - Fork 43
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
Can't stop redirect to HTTPS #33
Comments
The proxy won't do anything with HTTPS unless you have certs loaded into the proxy container, did you do that as well? What does your proxy's nginx config look like when the containers are all running? |
@codekitchen I work with @MrMMorris. Here what the nginx config looks like:
|
Hm yeah, since you haven't added SSL certs to the proxy it's not even listening on port 443. Oh and actually I missed before that you're hitting port 8080 with |
Ah ok,
I thought it might have been dinghy, but thanks for confirming it isn't.
I will try and track down what is causing the redirect.
…On May 12, 2017 2:24 AM, "Brian Palmer" ***@***.***> wrote:
Hm yeah, since you haven't added SSL certs to the proxy it's not even
listening on port 443.
Oh and actually I missed before that you're hitting port 8080 with
http://apache.blah.docker:8080. That is bypassing the proxy completely,
the proxy only listens on port 80 (and 443 if you configure SSL). So what
you're seeing doesn't have anything to do with the proxy at all, it must be
something in your own application that's doing the redirect? Use docker ps
to check which container is exposing port 8080 on the host, that'll tell
you which container is doing this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABbM6EQc-TXw1d2LQltgPjuhiO2cju1dks5r41J1gaJpZM4NYK5H>
.
|
hey been a while!
I have a setup that has nginx > varnish > apache.
when you hit
nginx.blah.docker
, it forces HTTPS because I tell it to:However, I also had it set up (not sure when it worked last) so that if you hit
apache.blah.docker:8080
then it serves non-HTTPS and bypasses varnish:Now, it seems that when I go to
http://apache.blah.docker:8080
, it gets forced to HTTPS which is not what I want (and chrome throws an error).I see that with the http proxy, I should be able to set
HTTPS_METHOD=noredirect
on the apache container and it shouldn't redirect to HTTPS correct? I have tried and it doesn't seem to work.Is there some way to disable the redirect to HTTPS entirely? I need to be able to hit nginx and it goes all the way through varnish and apache as HTTPS, but when hitting apache, it stays HTTP.
I don't really need the proxy handling any redirects for me.
Any ideas?
The text was updated successfully, but these errors were encountered: