ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Slava Dubrovskiy <slava@tangramltd.com>
To: Sysadmins@lists.altlinux.org
Subject: [Sysadmins] настройка nginx
Date: Fri, 31 Aug 2007 18:53:36 +0300
Message-ID: <46D83980.4070101@tangramltd.com> (raw)

Здравствуйте.

Установил nginx как фронтенд к апачу.
Теперь в логе апача IP всегда 127.0.0.1. Я так понимаю надо настроить
real_ip. Добавил в конфиг
           set_real_ip_from   0.0.0.0;
           real_ip_header     X-Real-IP;
И не помогает.
Подскажите, как правильно настроить real_ip в nginx?

ЗЫ. Пока выкрутился правкой конфига апача на предмет формата лога -

LogFormat "%{X-Real-IP}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%{X-Real-IP}i %l %u %t \"%r\" %>s %b"
common                                  │


-- 
WBR,
Dubrovskiy Vyacheslav



             reply	other threads:[~2007-08-31 15:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31 15:53 Slava Dubrovskiy [this message]
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
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=46D83980.4070101@tangramltd.com \
    --to=slava@tangramltd.com \
    --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