Welcome! Log In Create A New Profile

Advanced

Re: Problem with SSL

September 07, 2016 11:58PM
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;
...
}
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: 70
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