ssl on different servers

Valentin V. Bartenev vbart at nginx.com
Wed Oct 2 18:44:09 UTC 2013


On Wednesday 02 October 2013 05:18:22 you wrote:
> Hi,
> My domain.com is on ip: x.x.x.x
> where I have a configuration like:
> 
> server {
>    server_name  sub.domain.com;
>    location / {
> 
>       proxy_pass http://y.y.y.y;
> 
>       proxy_set_header X-Real-IP $remote_addr;
>       proxy_set_header Host $host;
>       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>     }
> 
> On ip y.y.y.y my configuration is:
> 
> server {
>    server_name  sub.domain.com;
>    location / {
> 
>       proxy_pass http://localhost:8080;
> 
>       proxy_set_header X-Real-IP $remote_addr;
>       proxy_set_header Host $host;
>       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>     }
> 
> That's fine!
> 
> But...
> 
> I'm trying to add ssl support, I bought a wildcard certificate but
> unfortunately I'm struggling with the configuration.
> 
> I changed the config on x.x.x.x:
> 
> server {
>    server_name  sub.domain.com;
>    location / {
>       proxy_pass http://y.y.y.y;
[..]

You have changed y.y.y.y to use HTTPS, but still trying to pass HTTP.

  wbr, Valentin V. Bartenev



More information about the nginx mailing list