ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nginx (https) + apache (http)


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Nginx (https) + apache (http)
  • From: "ssj" <nginx-forum@xxxxxxxx>
  • Date: Mon, 10 Feb 2014 09:15:09 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selenium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=R9xRhDZlwMIKf6lsyZJr1fCLx5boyeHsGUOi74tcKsQ=; b=uwWEE7K47c3U8sPo2zwftQO4GknEBDsJXpTDyqnGQ1nbg/51qnSHCrDTYImoqBDNzPw1wmZHQ427U3X6sLeR3qfOp1WLjzQquxWo02G8/Ay0uaM79EWeWRJi68GRr/WRGm4fUgfvXdofr+QlrfIjzC1J/SsuaKPJtCj4HSKrAa0=;
  • In-reply-to: <1707187.uiNLIsu9yV@vbart-laptop>
  • References: <1707187.uiNLIsu9yV@vbart-laptop>

Привожу пример своего конфига (используется панель 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;
        }

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,247338,247354#msg-247354

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.