On 9/21/06, Nick Ascione <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to