static int uwsgi_send_headers(request_rec *r, proxy_conn_rec *conn)
const char *path_info = apr_table_get(r->subprocess_env, "PATH_INFO");
server {
listen [::]:443 ssl;
server_name name-to-connect-to-via-https.domain.tld;
ssl_certificate /etc/ssl/nginx/nginx.crt;
ssl_certificate_key /etc/ssl/nginx/nginx.key;
access_log /var/log/nginx/storage1.access_log main;
error_log /var/log/nginx/storage1.error_log info;
location / {
proxy_pass http://address-to-connect-to-via-http.domain.tld;
proxy_set_header Host $http_host; // нужно, если http://address-to-connect-to-via-http.domain.tld должен получать заголовок Host: name-to-connect-to-via-https.domain.tld
}
}
https://name-to-connect-to-via-https.domain.tld/ и поехали