ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] Q: OPTIONS requests from localhost in Apache access_log
Date: Thu, 14 Jan 2010 01:07:25 +0200
Message-ID: <20100113230725.GO11686@osdn.org.ua> (raw)
In-Reply-To: <m3ska9655n.fsf@blard.localdomain>

On Thu, Jan 14, 2010 at 03:55:48AM +0600, Michael Pozhidaev wrote:
> Странными они кажутся потому, что приходят с localhost

nginx перед apache?  Если да -- надо включить mod_realip
в apache-1.3 (в нашей сборке давно есть, надо только
сконфигурировать) либо mod_rpaf в apache-2.2.

Примерно так:

---
<IfModule mod_realip.c>
    RealIP localhost xfwd
    RealIP a.b.c.d xfwd
</IfModule>
--- httpd.conf

---
        location / {
            proxy_pass http://127.0.0.1/;
            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $remote_addr;
        }
--- nginx.conf

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


  reply	other threads:[~2010-01-13 23:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 21:55 Michael Pozhidaev
2010-01-13 23:07 ` Michael Shigorin [this message]
2010-01-13 23:33   ` Michael Pozhidaev
2010-01-13 23:53     ` Michael Pozhidaev
2010-01-14 16:03     ` Michael Shigorin

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=20100113230725.GO11686@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=shigorin@gmail.com \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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