I
I
Ilya bow2016-08-30 21:34:22
Nginx
Ilya bow, 2016-08-30 21:34:22

How to make https proxy for all sites in nginx?

what is

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
        worker_connections 768;
        # multi_accept on;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;

server{
        listen       80;
location / {
    proxy_pass http://$http_host$request_uri;
    proxy_set_header Host $http_host;
    resolver 8.8.8.8;
}
}
}

tell me what and where to add to https, otherwise I read it and looked and it's not clear.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question