Welcome! Log In Create A New Profile

Advanced

Re: Problem with SSL

ron ramos
September 08, 2016 12:02AM
Just add another server block on domain1 that listens to 443 ..and redirect
it to http if you ..or just give an error

On 8 Sep 2016 11:59 a.m., "Kurogane" <nginx-forum@forum.nginx.org> wrote:

> Domain 1
>
> server {
> listen 80;
> server_name domain1.com;
> return 301 $scheme://www.$host$request_uri;
> }
>
> server {
> listen 80;
> server_name www.domain1.com;
> root /home/domain1/public_html;
> ...
> }
>
> Domain 2 (SSL)
>
> server {
> listen 80;
> server_name domain2.com;
> return 301 $scheme://www.$host$request_uri;
> }
>
> server {
> listen 80;
> server_name www.domain2.com;
> return 301 https://$host$request_uri;
> }
>
> server {
> listen 443 ssl http2;
> server_name www.domain2.com;
>
> ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
> ssl_certificate /home/nginx/ssl/domain2.com/domain2.com.crt;
> ssl_certificate_key /home/nginx/ssl/domain2.com/domain2.com.key;
> root /home/domain2/public_html;
> ...
> }
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,269401,269417#msg-269417
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with SSL

Kurogane September 07, 2016 05:27AM

Re: Problem with SSL

Yuriy Medvedev September 07, 2016 05:30AM

Re: Problem with SSL

Kurogane September 07, 2016 12:33PM

Re: Problem with SSL

Yuriy Medvedev September 07, 2016 03:36PM

Re: Problem with SSL

Kurogane September 07, 2016 11:58PM

Re: Problem with SSL

ron ramos September 08, 2016 12:02AM

Re: Problem with SSL

Kurogane September 08, 2016 01:19AM

Re: Problem with SSL

Yuriy Medvedev September 08, 2016 01:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
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