Category: apache
-
Implementing Apache’s force proxy flag for rewrite rules under NGINX
NGINX’s default behavior for rewrite rules (at least up to version 0.7.65) is to redirect if the replacement part begins with ‘http://’. Let me quote some info from NGINX’ wiki: rewrite syntax: rewrite regex replacement flag […] If the replacement string begins with http:// then the client will be redirected, and any further rewrite directives […]