Welcome! Log In Create A New Profile

Advanced

Nginx ssl

April 19, 2016 02:03AM
Добрый день
Есть сервер nginx работает как обратный прокси сервер, для некоторого количества сайтов,
один из них нужно перевести на https, конфиг
server {
server_name www.example.com example.com;
location / {
proxy_pass http://192.168.0.23;
proxy_redirect http://localhost/ http://$host:$server_port/;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 8M;
}

По адресу 192.168.0.23
Виртуалка с Nginx + phpfpm

Вопрос где включать ssl на гипервизоре(обратная прокся) или на виртуалке с сайтом?
И если можно в двух словах о том как это сделать.
Спасибо
Subject Author Posted

Nginx ssl

amatol15 April 19, 2016 02:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready