H
H
heyheyway2016-11-19 15:18:37
Nginx
heyheyway, 2016-11-19 15:18:37

Setting https to nginx shows Welcome to nginx?

Good afternoon! Guys really need help with setting up nginx.
The problem is that https does not work on the site, when switching to https it says:
"Welcome to nginx!
If you see this page, the nginx web server is successfully installed ..." I
will replace the domain with mydomain, for personal purposes.
Config used to configure ssl in /etc/nginx/sites-available

server {
    listen       443 ssl;
    server_name  mydomain.com;

    ssl_certificate      /etc/nginx/ssl/certs/mydomain.com_nginx.crt;
    ssl_certificate_key  /etc/nginx/ssl/private/mydomain.com.key;

  ssl_session_timeout			20m;	
  ssl_session_cache			shared:SSL:20m;	
  ssl_protocols				TLSv1 TLSv1.1 TLSv1.2;
  ssl_prefer_server_ciphers		on;
  ssl_ciphers				ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK;

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-11-19
@alexey-m-ukolov

Well, in your server config, the folder in which the scripts are located is indicated, so nginx takes the default one and shows you the default greeting from there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question