Wanted to follow up on this for the archives, a few days later I switched gears on this and..<br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 11:55 AM, Jason Young <span dir="ltr"><<a href="mailto:jason.young@extension.org">jason.young@extension.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi folks,<div><br></div><div>I'm running into a devil of a problem with my OP, that I can't seem to get solved and straight.</div>
<div></div></blockquote><div>[...]</div><div><br></div><div>What I ended up doing with this is just delegation.</div><div><br></div><div>The old virtual hosts proxies requests using mod_rewrite to a delegation method in the application running at the new virtual host that just points to the endpoint and the local_id of the new virtual host.</div>
<div><br></div><div>e.g. for demo:</div><div><br></div><div>http(s)://<a href="http://people.demo.extension.org/[blah]">people.demo.extension.org/[blah]</a></div><div><br></div><div>=> </div><div><br></div><div><div> RewriteCond %{REQUEST_URI} !.*images.*</div>
<div> RewriteCond %{REQUEST_URI} !.*stylesheets.*</div><div>[...] bunch of other controller exceptions</div><div> RewriteRule ^/(.*) <a href="http://pubsitedev.extension.org/opie/delegate/$1">http://pubsitedev.extension.org/opie/delegate/$1</a> [L,P]</div>
<div><br></div><div>=> HTTP/1.1 200 OK</div><div><br></div><div>...</div><div><link rel="openid2.provider openid.server" href="<a href="https://pubsitedev.extension.org/opie">https://pubsitedev.extension.org/opie</a>" /></div>
<div><link rel="openid2.local_id openid.delegate" href="<a href="https://pubsitedev.extension.org/people/jayoung">https://pubsitedev.extension.org/people/jayoung</a>" /></div></div><div><br></div>
<div><br></div><div>I have to maintain a virtual host configuration for perpetuity that does the proxy, and I had to write a controller method to handle the proxy request (and give it knowledge about the host names for the endpoint and local_id) - but that's a relatively small price to pay for working :-)</div>
<div><br></div><div>Jason</div><div><br></div></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Jason Young -- Systems Manager, eXtension<br><a href="http://about.extension.org/wiki/Jason_Young">http://about.extension.org/wiki/Jason_Young</a><br>
______________________________________<br><br><br>