Tom Mueller wrote: > Shawn Walker wrote: >> I don't believe it will rewrite the URLs. >> >> As I understand it, I need a full, absolute URL to the feed: >> http://tools.ietf.org/html/rfc4287#section-4.2.6 >> >> Uncertain what to do with this. >> > I'm not sure either. I thought the Host header came into play here, but > that doesn't solve everything. This might have to be done with > rewriting rules in the proxy.
Thankfully, cherrypy does provide a solution for this: http://cherrypy.org/wiki/BuiltinTools#tools.proxy However, it appears that it requires to provide the full URI to the application as part of the configuration. In other words, I'd have to add some sort of parameter to pkg.depotd such as --proxy-base: pkg.depotd --proxy-base http://pkg.opensolaris.org/status I've posted to the cherrypy users group to see if there isn't a dynamic way to do this. However, this does solve the issue you brought up since cherrypy.url() and all the other various methods will "do the right thing" if you use tools.proxy. I would prefer a more dynamic approach instead of having to provide this information to the depot server at startup. I remain hopeful. For now, I'm just going to use cherrypy.url() and wait for a response from the newsgroup. -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
