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