Rewrite with proxy adds document root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have this config included via Include conf.d/myconfig/*.conf within my virtualhost.

<Location "/requested-uri">
ProxyAddHeaders off
RewriteEngine on
RewriteCond %{QUERY_STRING} ^123 [NC]
RequestHeader set "X-API-KEY" "proxied"
RewriteRule (.*) "https://${HOST}$1" [QSD,P,L]
</Location>

But the above rule is also proxying the /var/www/html which is the document root. I have no idea why as this is not added via .htaccess

So if you curl for example /requested-uri/123/index.html the proxied path would look /var/www/html/requested-uri/123/index.html

Any ideas why ?

Thanks a lot !


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux