SSL Reverse Proxy #200
SSL Reverse Proxy #200
Comments
.crt is usually PEM encoded and just named w/ .crt. I'd suggest running |
I was unable to get SSL working. I was playing around and renamed my .cer file to .crt and touched a file in $HOME/nginx/vhost.d. The file created was . This is how I got the SSL working. I feel this is just by lucky everything worked. I read something that .cer and .crt are one in the same DER certs? The problem I have with troubleshooting within the nginx container is all the logs and request are live. What I mean is the minute I "docker attach nginx" the screen will show live log consistently. Is there a way to suppress it? I apologize for my novice request as I am only 2 month into docker and really excited. |
Hi Jason, I managed to get the SSL working but now I have a different issue. Initially I tested it on port 80 to make sure everything is working (it did). Then after moving everything over to 443 I have a redirect loop error message. My settings are as follows: VirtualHost *:80 VirtualHost *:443 SSLProtocol all -SSLv2 SetEnvIf User-Agent ".MSIE." CustomLog logs/ssl_request_log I read that if there is a reverse proxy in front of the containers then there is a possibility that it might go into an inifinite loop. I would like to do something with the headers. Can you kindly provide some expertise. |
Error Message; This web page has a redirect loop ERR_TOO_MANY_REDIRECTS |
@gajeevan , how did you solve the problem of ERR_TOO_MANY_REDIRECTS? I have similar problem now |
Me too ! |
@juanluisbaptiste, seems like now I understood what was the problem. I disabled HTTP proxy in DNS server settings on my CloudFlare account and now nginx-proxy is working fine! @jwilder and anyone who participate in this issue, please confirm that enabling Cloudflare CDN affects on normal work of nginx-proxy More details: https://support.cloudflare.com/hc/en-us/articles/115000219871-Why-does-Flexible-SSL-cause-a-redirect-loop- |
@pavelsr thanks, I also fixed it with answer found here. Basically it says to add the following options to the nginx config: on your main config (ie: my_proxy.conf): On the virtual host config file on vhost.d: This options fixed the redirect for me. |
Hi Jason,
First off I would like to thank you for this great product you have created. This has made my life very easy. I have a little issue getting the SSL working and was wondering if you can give me some hints as to where I have gone wrong.
My Setup
NGINX SCRIPT
docker run -d -it
--name nginx
-h nginx
-p 80:80
-p 443:443
-v $HOME/nginx/certs:/etc/nginx/certs:ro
-v $HOME/nginx/vhost.d:/etc/nginx/vhost.d:ro
-v $HOME/nginx/passwords:/etc/nginx/passwords:ro
-v $HOME/nginx/log:/var/log/nginx
-v /var/run/docker.sock:/tmp/docker.sock:ro
jwilder/nginx-proxy \
I am able to get traffic on 80 working perfectly. I expose the env $VIRTUAL_HOST and everything works as expected. The trouble I am faced with is making my https:// sites working within container 1.
Questions
The text was updated successfully, but these errors were encountered: