DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=23295>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=23295 ------- Additional Comments From [EMAIL PROTECTED] 2007-09-16 14:48 ------- For comment #0 ------------------------------------------------ RewriteEngine on RewriteRule (.*) http://backend/somedir/$1 [P] ------------------------------------------------ I think this work correctly. If you need to pass the url encoded to the proxied web server, you need to do this : ------------------------------------------------------------ First, add this line to the server config : RewriteMap encode int:escape Second, use this rewrite rule to your .htaccess file : RewriteRule (.*) http://backend/somedir/${encode:$1} [P] ------------------------------------------------------------ I'm using a similar configuration and rules to proxy all php files to another server. My configuration is : In server config file : <IfModule mod_rewrite.c> RewriteEngine On RewriteMap encode int:escape </IfModule> And to process php files on backend server, i also added this to server config file : <Files *.php> RewriteEngine On RewriteOptions inherit RewriteCond %{SCRIPT_FILENAME} -f RewriteRule (.*)$ http://%{SERVER_NAME}:81${encode:%{REQUEST_URI}} [P] </Files> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
