ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] настройка nginx
Date: Mon, 03 Sep 2007 15:40:10 +0600
Message-ID: <m3r6lg84ud.fsf@vvk.distance.ru> (raw)
In-Reply-To: <46D84404.7080708@tangramltd.com> (Slava Dubrovskiy's message of "Fri, 31 Aug 2007 19:38:28 +0300")

>>>>> On 31 Aug 2007 at 22:38 "SD" == Slava Dubrovskiy writes:

 SD> Еще вопрос про SSL.
 SD> Хочу также проксировать 443 порт. Апачь слушает на localhost:443. В
 SD> nginx нужно ли писать сертификаты и т.д. или можно также как 80?

Если в апаче задействован ssl то тут уэ никак его ИМХО не спроксируешь (да и
смвсла нет).

Лично у меня как раз nginx хэндлит ssl, а с бэкендами-апачами общается по
plain http. Т.е. вот так:

    server {
        listen 443;
        server_name xxx.xxx.ru;
        ssl on;
        ssl_certificate /etc/nginx/ssl/xxx.xxx.ru-cert.pem;
        ssl_certificate_key /etc/nginx/ssl/xxx.xxx.ru-key.pem;
        location / {
            proxy_pass http://192.168.203.15/;
            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
        }
    }

-- 
vvk

Russian Postfix irc: irc.freenode.net #postfix-ru


  parent reply	other threads:[~2007-09-03  9:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31 15:53 Slava Dubrovskiy
2007-08-31 16:17 ` Michael Shigorin
2007-08-31 16:23   ` Slava Dubrovskiy
2007-08-31 16:26     ` Michael Shigorin
2007-08-31 16:38       ` Slava Dubrovskiy
2007-08-31 17:06         ` Michael Shigorin
2007-09-03  9:40         ` Vladimir V. Kamarzin [this message]
2007-09-03  9:55           ` Slava Dubrovskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3r6lg84ud.fsf@vvk.distance.ru \
    --to=vvk@vvk.pp.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git