Proxy based on parameter in the URL
问题 I want to use the Apache HTTPd as a proxy server: If a user requests http://xxx?st=yyy the chosen backend server should be server1 . If a user requests http://xxx (no st parameter) then the backend server should be server2 . I want to know how I need to configure Apache to achieve this. 回答1: Have a look at http://httpd.apache.org/docs/current/mod/mod_rewrite.html and the examples; specifically you are helped by the fact that: REQUEST_URI The path component of the requested URI, such as "