rewrite redirect exclude path

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

 



Good afternoon afternoon masters,

I have rules initially look like this

*******************************
RewriteRule ^/$ https://frontend.domain.com/foo/bar/  [R, L]

RewriteRule ^/(.*)$ https://backend.domain.com/$1 [P,L]
ProxyPassReverse / https://backend.domain.com/
*********************************

I would like to integrate some requirements,

i.e. if root or path not equal /foo/bar/* or /foo/bar1/* redirect to
https://backend.domain.com/foo/bar

Can you please help what's the best syntax to approach this?

Many thanks,
Eric

[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