yaoweibin / nginx_ajp_module

support AJP protocol proxy with Nginx
http://github.com/yaoweibin/nginx_ajp_module
246 stars 60 forks source link

Add ajp_scheme_header to change default protocol value #12

Open freddy33 opened 11 years ago

freddy33 commented 11 years ago

When using a load balancer in front of nginx, the real protocol is actually set in a request header X-Forwarded-Proto. Adding "ajp_scheme_header X-Forwarded-Proto" to the ajp module conf could change the actual value of the scheme passed to tomcat, so all URL created inside the web application will be correct.