A
A
Andrey Bystrov2017-08-23 16:31:41
Nginx
Andrey Bystrov, 2017-08-23 16:31:41

SSL on nginx on centos 6 binding to an IP address without a domain on different ports, perhaps?

There is a need to fasten an SSL certificate to different ports of the web server, because depending on where the client came from, it is transferred to different ports, for example 8050, 8051, ..., 8060, etc., and leaves it on the assigned port until the end of the authorization procedure. There is no domain, the certificate must be bound to an IP address.
An example of the configuration of one of the ports:

server {
        charset UTF-8;
        listen       23.24.165.49:8053;
        listen       10.33.241.2:8093 default_server;
        root    /data/www/8053;
        
        location / {
            try_files $uri $uri/ /index.php?request=$uri&$args;
           index  index.php;
            expires 100d;
        }

            location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /$document_root/$fastcgi_script_name;

        include        fastcgi_params;
 
  ##
    

       }

    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-08-23
@BorisKorobkov

Didn't see the question.
How to create a self-signed certificate on an IP without a domain? Yes, take any certificate and use it. All the same, the browser will swear.
How to add a certificate to Nginx to server? Thousands of manuals have already been written.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question