Welcome! Log In Create A New Profile

Advanced

redirect https:// to https://www produce untrusted connection

pablo platt
May 09, 2010 04:38PM
Hi,

I'm running a website with nginx as a proxy and for static files.
I'm using the ubuntu lucid nginx package - version 0.7.65
http://example.com redirect to http://www.example.com - works
https://www.example.com - SSL works
https://example.com redirect to https://www.example.com - doesn't work and
show untrusted connection in the browser.

I have two questions:
- Why SSL only works when I use default on the listen: "listen 443
default;"
- Why I can't redirect https:// to https://www before I'm getting the
untrusted connection warning.

Thanks

My config file:
server {
listen 80;
server_name example.com.com;
rewrite ^/(.*) http://www.example.com/$1 permanent;
}

server {
listen 80;
server_name www.example.com;

location / {
proxy_pass http://127.0.0.1:8000;
}

...
}

server {
listen 443;
server_name example.com.com;
rewrite ^/(.*) https://www.example.com.com/$1 permanent;
}

server {
listen 443 default;

ssl on;
ssl_certificate /etc/nginx/ssl/example.pem;
ssl_certificate_key /etc/nginx/ssl/example.key;

server_name www.example.com;

location / {
proxy_pass http://127.0.0.1:8000;
}
...
}
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

redirect https:// to https://www produce untrusted connection

pablo platt May 09, 2010 04:38PM

Re: redirect https:// to https://www produce untrusted connection

Igor Sysoev May 10, 2010 03:40AM

Re: redirect https:// to https://www produce untrusted connection

pablo platt May 10, 2010 07:14AM

Re: redirect https:// to https://www produce untrusted connection

Igor Sysoev May 10, 2010 07:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready