Page 1 of 1

ASL + Varnish + Nginx

Posted: Tue Feb 10, 2015 2:30 am
by imadsani
I'm adding varnish in front of my webservers to reduce server load, how would ASL work in this scenario?

My question, to be more precise, is whether I'll need to configure req.http.X-Forwarded-For in varnish and set_real_ip_from & real_ip_header in nginx?

Re: ASL + Varnish + Nginx

Posted: Tue Feb 10, 2015 10:08 am
by scott
Yeah, you need the client IP to show up correctly in the apache logs, otherwise its going to shun your reverse proxies.

Re: ASL + Varnish + Nginx

Posted: Mon Feb 16, 2015 5:09 am
by imadsani
will it still work if i've moved nginx to a non-standard port?

edit: I've made the changes to both nginx's config and varnish but I still am using a custom port for nginx. I'm trying to add a TWAF entry but am getting the dreaded "I need more licenses message". Is there anyway I can get around this?

Hint: I have 3 IP addresses that i need to set this up for.