Re: [users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread Eric Covener
On Mon, Sep 24, 2018 at 11:46 AM David Tkacik wrote: > > Thanks Eric, > > But if I have multiple rewrite rules and rewrite conditions, how do I speficy > for which cond and rule I want to apply it in context of a URI ? > > Would waterfall work here ? > > For example in one config: > >

Re: [users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread David Tkacik
Thanks Eric, But if I have multiple rewrite rules and rewrite conditions, how do I speficy for which cond and rule I want to apply it in context of a URI ? Would waterfall work here ? For example in one config: RewriteCond %{QUERY_STRING} ^123 [NC] RequestHeader set "X-API-KEY" "proxied"

Re: [users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread Eric Covener
On Mon, Sep 24, 2018 at 11:14 AM David Tkacik wrote: > > I have this config included via Include conf.d/myconfig/*.conf within my > virtualhost. > > > ProxyAddHeaders off > RewriteEngine on > RewriteCond %{QUERY_STRING} ^123 [NC] > RequestHeader set "X-API-KEY" "proxied" > RewriteRule (.*)

[users@httpd] Rewrite with proxy adds document root

2018-09-24 Thread David Tkacik
I have this config included via Include conf.d/myconfig/*.conf within my virtualhost. ProxyAddHeaders off RewriteEngine on RewriteCond %{QUERY_STRING} ^123 [NC] RequestHeader set "X-API-KEY" "proxied" RewriteRule (.*) "https://${HOST}$1; [QSD,P,L] But the above rule is also proxying the