Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx apache2 (rpaf-0.6)
- To: "over@xxxxx" <nginx-ru@xxxxxxxxx>
- Subject: Re: nginx apache2 (rpaf-0.6)
- From: "Denis F. Latypoff" <denis@xxxxxxxxxx>
- Date: Wed, 3 Dec 2008 15:03:33 +0600
- Domainkey-signature: a=rsa-sha1; h=Received:Date:From:X-Mailer:Organization:X-Priority:Message-ID:To:Subject:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=BDeatwvpppAiGRD2NmPtKEM+hymB2k5SYx9aeKot5B6DKHp+HIJzCENKxlm+XlzmMmGycIsbVyJ75KBGfvT8hMNmabwL2YgQ3Fs3ld1IdWxHtFeHiOVdLjfIjB+kcQYi; c=nofws; d=gostats.ru; q=dns; s=default
- In-reply-to: <20081202172824.5828e2aa@xxxxx>
- Organization: GoStats.RU
- References: <20081202172824.5828e2aa@xxxxx>
Hello Over,
Tuesday, December 2, 2008, 8:28:24 PM, you wrote:
> Доброго времени суток,
> есть:
> Debian
> - nginx/0.6.34
> - apache2
> - rpaf(0.6
> - php5
> # apache2 -V
> Server version: Apache/2.2.3
> Server built: Sep 6 2008 09:52:20
> Server's Module Magic Number: 20051115:3
> Server loaded: APR 1.2.7, APR-Util 1.2.7
> Compiled using: APR 1.2.7, APR-Util 1.2.7
> Architecture: 32-bit
> Server MPM: Prefork
> threaded: no
> forked: yes (variable process count)
> Server compiled with....
> -D APACHE_MPM_DIR="server/mpm/prefork"
> -D APR_HAS_SENDFILE
> -D APR_HAS_MMAP
> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
> -D APR_USE_SYSVSEM_SERIALIZE
> -D APR_USE_PTHREAD_SERIALIZE
> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
> -D APR_HAS_OTHER_CHILD
> -D AP_HAVE_RELIABLE_PIPED_LOGS
> -D DYNAMIC_MODULE_LIMIT=128
> -D HTTPD_ROOT=""
> -D SUEXEC_BIN="/usr/lib/apache2/suexec"
> -D DEFAULT_PIDLOG="/var/run/apache2.pid"
> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
> -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
> -D DEFAULT_ERRORLOG="logs/error_log"
> -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
> -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
> # cat /etc/apache2/mods-enabled/rpaf.conf
> RPAFenable On
> RPAFproxy_ips 127.0.0.1 10.0.3.3
> RPAFsethostname On
> RPAFheader X-Forwarded-For
> nginx.conf:
> ---- [ cut ] -----
> location / {
> proxy_pass http://10.0.3.3:8080;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> }
> ---- [ cut ] -----
> проблема:
> в .htaccess :
> Order Allow,Deny
> Deny From All
> Allow From 127.0.0.1
> Allow From 10.0.3.4
> Allow From 10.0.3.5
> Allow From 10.0.3.6
> в php $_SERVER['REMOTE_ADDR'] отдаёт всё нормально, в логах апача
> REMOTE_ADDR тоже правильный, но в .htaccess попадает какойто другой
> адрес и возникает 403, в чём может быть проблема ?
> похожую проблему нашёл здесь
> http://www.opennet.ru/openforum/vsluhforumID8/6014.html .
> исходник самого mop_rpaf в аттаче.
наводка:
http://xpoint.ru/forums/internet/webservers/apache/thread/41092.xhtml
--
Best regards,
Denis mailto:denis@xxxxxxxxxx
|