August 11, 2015 02:53AM
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 my Raspberry Pi.

The configuration perfectly works for https://shell.raspi.dyndns.com but not for http://shell.raspi.dyndns.com (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?

Regards,
Steffen
Subject Author Posted

Redirect from HTTP to HTTPS does not work

StSch August 11, 2015 02:53AM

Re: Redirect from HTTP to HTTPS does not work

Francis Daly August 11, 2015 03:38AM

Re: Redirect from HTTP to HTTPS does not work

StSch September 08, 2015 08:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready