Redirect from HTTP to HTTPS does not work

StSch nginx-forum at
Tue Aug 11 06:53:21 UTC 2015

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 / {

I am using a Dynamic DNS Service to access NGINX running on my Raspberry

The configuration perfectly works for but not
for (message: The requested URL could not be
retrieved. The system returned: Operation timed out.).

Any idea what the problem could be and how to fix it?


Posted at Nginx Forum:,260913,260913#msg-260913

More information about the nginx mailing list