RE: [users@httpd] Rewrite / reverse proxy question

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

 



What about this:
 
If the URL does not start by /[Ee]xchange the user is redirected to /Exchange... I also suggest that if the user requests the root path /, he gets redirected to /Exchange
 
RewriteRule ^/$ /Exchange [R]
 
RewriteCond $1 !^/[Ee]xchange
RewriteRule (.*) /Exchange [R]
 
The above rules imply that the only path accessible through the reverse proxy will be one prefixed with /Exchange.
 
-ascs


From: Gary W. Smith [mailto:gary@xxxxxxxxxxxxxxx]
Sent: Friday, June 10, 2005 8:58 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] Rewrite / reverse proxy question

Hello,
 
We are using reverse proxy an exchange server behind the firewall.  So far everything works fine but I wanted to put a rewrite script in place in the event they users don't type /Exchange/ and do something like /exchange (missing case and backslash).  Can anyone assist on creating the rewrite rule for this?
 
Thanks,
 
Gary Smith

[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