ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] настройка nginx
@ 2007-08-31 15:53 Slava Dubrovskiy
  2007-08-31 16:17 ` Michael Shigorin
  0 siblings, 1 reply; 8+ messages in thread
From: Slava Dubrovskiy @ 2007-08-31 15:53 UTC (permalink / raw)
  To: Sysadmins

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

Установил 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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-03  9:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-31 15:53 [Sysadmins] настройка nginx 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
2007-09-03  9:55           ` Slava Dubrovskiy

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