I'm not sure of the details, but this looks like it needs a rewrite and a proxy. The Apache rewrite module works pretty well with the proxy module to do some interesting stuff. I would look at the docs for the rewrite model, specificly dealing with the 'R' flag.
I know the proxy and rewrite module and I could do a rewrite, but this will not work. I rewrite http://sub.domain.com/path/script.cgi?var1=My&var2=Name to http://sub.domain.com:9673/redirect_module/path/script.cgi?var1=My&var2= Name but this will not work. Do you know how I could encode the original URL in the request URL for ZServer? (How could I pass the URL to the ZPublisher module without getting an error?) P.S.: really quick reply :-)))
Hi, I have a little problem and need your support :-) I want to do this:
Apache gets a request http://sub.domain.com/path/script.cgi?var1=My&var2=Name
Apache forwards this to ZopeHTTPServer (or ZServer) through the proxy module
A ZPublisher module should get the URL (/path/script.cgi?var1=My&var2=Name) and redirect to http://other.domain.com/path/script.cgi?var1=My&var2=Name
Is this possible? I think it should be possible with PCGI, but this is much more overhead. I'm using ZPublisher not Zope (don't need it for this projekt).