Welcome! Log In Create A New Profile

Advanced

Re: Nginx (https) + apache (http)

ssj
February 10, 2014 09:15AM
Привожу пример своего конфига (используется панель ISPmanager)
server {
server_name site.ru www.site.ru;
listen xx.xx.xx.xx;
listen xx.xx.xx.xx:443 ssl;

location / {
proxy_pass http://xx.xx.xx.xx:8080;
proxy_redirect http://xx.xx.xx.xx:8080/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}

ssl_certificate /путь/site.ru.crt;
ssl_certificate_key /путь/site.ru.key;
}
Subject Author Posted

Nginx (https) + apache (http)

ssj February 10, 2014 08:29AM

Re: Nginx (https) + apache (http)

Валентин Бартенев February 10, 2014 08:48AM

Re: Nginx (https) + apache (http)

ssj February 10, 2014 09:15AM

Re: Nginx (https) + apache (http)

Валентин Бартенев February 10, 2014 10:00AM

Re: Nginx (https) + apache (http)

ssj February 10, 2014 10:53AM

Re: Nginx (https) + apache (http)

ssj February 12, 2014 03:33AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready