A
A
Andrey2020-07-01 15:40:10
Nginx
Andrey, 2020-07-01 15:40:10

How to disable SSL on 443 Nginx?

Please tell me what needs to be changed in the Nginx configs to disable the https connection on port 443

server {
    listen 443;
    ssl_certificate           /home/****/ssl/trust-chain.crt;
    ssl_certificate_key       /home/****/ssl/private.key;

    ssl on;
    ssl_session_cache  builtin:1000  shared:SSL:10m;
    ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;

    server_name example.subdomain.domain.com;
    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://example; 
    }
}

Real host changed to example/subdomain, domain for example.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2020-07-01
@MechanID

443 for https is used by default, if you need to sniff traffic, then you can sniff what goes further to the host specified in proxy_pass, there will no longer be unencrypted traffic.

A
Andrey Gavrilov, 2020-07-01
@thexaver

443 port only ssl. Either change the port or get a certificate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question