Re: [users@httpd] proxypass ignore case issue

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

 



On 9/21/06, Nick Ascione <nick.ascione@xxxxxxx> wrote:
Thanks Rainer.

The mod_speling works great. However I have a new interesting problem

In my vhost I have

proxypass /somedir  /http://www.somedomain.com/somedir
proxypassreverse /somedir  /http://www.somedomain.com/somedir

The above works fine and mod_speling catches any weird way that somedir
can be written.

But...
Since I need this server to also proxy requests to / for
www.somedomain.com when I put in

proxypass /  http://www.somedomain.com
proxypassreverse /  /http://www.somedomain.com/somedir

the mod_speling no longer works. It seems to only process only if none
of the proxypass rules match
and since the rule for / matches http://www.somedomain.com/SoMeDir
mod_speling does not kick in.

Do you know of a way around this?

This is complex enough that it is best dealt with in mod_rewrite:

RewriteEngine On
RewriteRule /somedir(.*) http://www.somedomain.com/somedir$1 [P,L]
RewriteRule /somedir(.*) http://%{SERVER_NAME}/somedir$1 [NC,R,L]
RewriteRule (.*) http://www.somedomain.com$1 [P,L]
ProxyPassReverse ...

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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