my goal is the following<div><br></div><div>i want requests that come in this format...</div><div><br></div><div><a href="http://d1.example.com">http://d1.example.com</a></div><div><a href="http://d2.example.com">http://d2.example.com</a></div>
<div>.</div><div>.</div><div><a href="http://dn.example.com">http://dn.example.com</a></div><div><br></div><div>to proxy through to my web server as </div><div><br></div><div><a href="http://hardcode.example.com/?site=d1">http://hardcode.example.com/?site=d1</a></div>
<div><div><a href="http://hardcode.example.com/?site=d2">http://hardcode.example.com/?site=d2</a></div><div>.</div><div>.</div><div><div><a href="http://hardcode.example.com/?site=dn">http://hardcode.example.com/?site=dn</a></div>
<div><br></div><div>I would also like to pass the uri as is and just append the site=d1 to the request. for example</div><div><br></div><div><a href="http://d1.example.com/processRequest?arg=1">http://d1.example.com/processRequest?arg=1</a></div>
<div><br></div><div>to become</div><div><a href="http://hardcode.example.com/processRequest?arg=1&amp;site=d1">http://hardcode.example.com/processRequest?arg=1&amp;site=d1</a></div><div><br></div><div><br></div><div>Can the proxy_pass/rewrite combination achieve this pattern?</div>
<div><br></div><div><br></div><div>I believe that <a href="http://hardcode.example.com">hardcode.example.com</a> doesn&#39;t have to be the same domain as the src, its the moving of the subdomain to the argument parameter which i desire.</div>
<div><br></div><div>Thanks</div><div><br></div><div><br></div></div></div>