Bug 11368 - need proxy_set_header with proxy_pass!
Summary: need proxy_set_header with proxy_pass!
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: nginx (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 15:11 MSD by Michael Shigorin
Modified: 2007-08-30 17:56 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2007-04-05 15:11:19 MSD
Следует добавить в пример конфигурации nginx подобное около proxy_pass:

proxy_set_header   X-Real-IP        $remote_addr;
proxy_set_header   X-Forwarded-For  $remote_addr;

-- иначе многие будут недоумевать по поводу статистики.

Это довольно настоятельный FR...
Comment 1 Michael Shigorin 2007-04-05 15:33:42 MSD
Поправочка, полная сюита выглядит так:

# cooperate with mod_realip in apache-1.3 or mod_rpaf in apache-2.x
            proxy_redirect off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $remote_addr;

и в таком виде заводится с наличествующей в apache-1.3 конфигурацией mod_realip
без дополнительных исканий.

Добавь заремаренной pls.
Comment 2 Denis Smirnov 2007-04-30 03:42:49 MSD
ушло в incoming/
Comment 3 Michael Shigorin 2007-08-30 17:56:49 MSD
tnx :)