Welcome! Log In Create A New Profile

Advanced

Re: Nginx (https) + apache (http)

Валентин Бартенев
February 10, 2014 10:00AM
On Monday 10 February 2014 09:15:09 ssj wrote:
> Привожу пример своего конфига (используется панель 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;
> }
>
[..]

Вы в первом сообщении сами написали, что редирект возвращается на:

http://site.ru/

а в proxy_redirect зачем-то для замены указали

http://xx.xx.xx.xx:8080/


--
Валентин Бартенев
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
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: 207
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