Re: Redirect from HTTP to HTTPS does not work

2015-09-08 Thread StSch
> Use "curl -i" to make the http request. See the response. > Use (for example) $host instead of $server_name. Thank you very much for your immediate response and sorry for my late reply. "curl -i" was very useful and using "$host" instead of "$server_name" indeed solved my problem. Thank you ver

Redirect from HTTP to HTTPS does not work

2015-08-10 Thread StSch
This is my configuration: server { listen 80; server_name shell.*; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name shell.*; location / { proxy_pass http://192.168.0.16:4200; } } I am using a Dynamic DNS Service to access NGINX running on m