RTFM.WIKI

Ordnung muß sein. Ordnung über alles (18+)

Инструменты пользователя

Инструменты сайта


Боковая панель


Навигация

Линкшэринг

ALARM!

Добавить новую страницу

You are not allowed to add pages
linux:apache:mod_extract_forwarded


mod_extract_forwarded

Модуль аналогичный mod_rpaf2

Установка (пример для CentOS 6)

# yum install mod_extract_forwarded

В файл /etc/httpd/conf.d/mod_extract_forwarded.conf добавить

MEFrefuse all
MEFaccept 127.0.0.1 IP2 IP3

В nginx должно быть

proxy_set_header    Host            $host;
proxy_set_header    X-Real-IP       $remote_addr;
proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;

Если будет ошибка

Starting httpd: httpd: Syntax error on line 89 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/mod_extract_forwarded.conf: Cannot load /etc/httpd/modules/mod_extract_forwarded.so into server: /etc/httpd/modules/mod_extract_forwarded.so: undefined symbol: proxy_hook_scheme_handler

нужно проверить загружен ли модуль proxy в /etc/httpd/conf/httpd.conf

LoadModule proxy_module modules/mod_proxy.so

EOM

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies

Discussion

Enter your comment. Wiki syntax is allowed:
 
linux/apache/mod_extract_forwarded.txt · Последнее изменение: 2018/01/25 12:29 (внешнее изменение)