From: Slava Dubrovskiy <slava@tangramltd.com> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] настройка nginx Date: Fri, 31 Aug 2007 19:23:20 +0300 Message-ID: <46D84078.6090806@tangramltd.com> (raw) In-Reply-To: <20070831161702.GX22284@osdn.org.ua> [-- Attachment #1: Type: text/plain, Size: 1300 bytes --] Michael Shigorin пишет: > On Fri, Aug 31, 2007 at 06:53:36PM +0300, Slava Dubrovskiy wrote: > >> Установил nginx как фронтенд к апачу. >> > > 1/2? > Не понял. >> Теперь в логе апача IP всегда 127.0.0.1. Я так понимаю надо >> настроить real_ip. Добавил в конфиг >> set_real_ip_from 0.0.0.0; >> real_ip_header X-Real-IP; >> И не помогает. >> > Чего?! >> одскажите, как правильно настроить real_ip в nginx? >> > > У меня примерно так: > > --- nginx.conf > location / { > proxy_pass http://back.end.ip.addr/; > proxy_redirect off; > proxy_set_header Host $host; > proxy_set_header X-Real-IP $remote_addr; > proxy_set_header X-Forwarded-For $remote_addr; > } > Такое у меня тоже есть. > --- httpd.conf > Listen back.end.ip.addr > > <IfModule mod_realip.c> > RealIP localhost xfwd > RealIP back.end.ip.addr xfwd > </IfModule> > У меня нет такого модуля в апаче :-( В cpanel не предусмотрено. А как добавить я еще не знаю... -- WBR, Dubrovskiy Vyacheslav [-- Attachment #2: S/MIME Cryptographic Signature --] [-- Type: application/x-pkcs7-signature, Size: 3249 bytes --]
next prev parent reply other threads:[~2007-08-31 16:23 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 [this message] 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=46D84078.6090806@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