Running nginx reverse proxy in front off plesk+asl

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
angelos
Forum User
Forum User
Posts: 14
Joined: Mon Dec 11, 2006 1:51 pm

Running nginx reverse proxy in front off plesk+asl

Unread post by angelos »

Hello,

i'm running a seperate server (nginx) as a reverse proxy and when i look on my webserver (plesk+asl) it gives me the ip adres of the nginx server. Not the real ip.
I configured nginx to forward the original ip. Do i have to configure something in asl to make this work.

thank you,

Angelo
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Running nginx reverse proxy in front off plesk+asl

Unread post by prupert »

You can do this with mod_rpaf, an Apache module that gets the real IP from the "X-Forwarded-For" header.
Lemonbit Internet Dedicated Server Management
angelos
Forum User
Forum User
Posts: 14
Joined: Mon Dec 11, 2006 1:51 pm

Re: Running nginx reverse proxy in front off plesk+asl

Unread post by angelos »

thx for the repley

i had the module rpaf loaded, but for centos i had to add this config file and reload apache :

/etc/httpd/conf.d/mod_rpaf.conf

RPAFenable On
RPAFsethostname On
RPAFproxy_ips x.x.x.x (replace with the server ip or the originated reverse proxy ip)
RPAFheader X-Forwarded-For


Hope this helps someone else :D
Post Reply