reverse proxy and iWS 6.1 SP2?
Hey all,
i have 2 questions.
Can i use reverse proxy (and pass proxy) with iWS 6.1 SP2?
How must i configure the webserver to use this?
I need the following thing:
Client called https://server111.de/XXXXTruePassApp/ > Proxy get Data from https://server222.de/XXXXTruePassAppProxy/
Under Apache looks like that with mod_proxy:
ProxyPass /eCaSSTruePassApp/ https://server222.de/XXXXTruePassAppProxy/
ProxyPassReverse /eCaSSTruePassApp/ https://server222.de/XXXXTruePassAppProxy/
Thanks for help.
Greets Chmeee-de
[580 byte] By [
Chmeee-dea] at [2007-11-26 21:35:42]

# 1
Chmeee-de, I really don't think you should be using Sun ONE Web Server 6.1SP2. That version has known security vulnerabilities. Please consider applying the latest service pack, 6.1SP7.
Have you downloaded the Reverse Proxy Plugin? Have you tried reading the Reverse Proxy Plugin release notes? The release notes for Reverse Proxy Plugin 6.1SP7 are at http://docs.sun.com/app/docs/doc/820-0262/6nc0vpnc2?a=view.
Once you have the plugin installed and have edited the magnus.conf configuration file according to the release notes, you can add the following line immediately below the <Object name="default"> line in the obj.conf configuration file:NameTrans fn="assign-name" from="/XXXXTruePassApp/*" name="XXXXTruePassApp"This line indicates that requests for /XXXXTruePassApp/* should be serviced by an object named XXXXTruePassApp.
You can then create an object named XXXXTruePassApp by adding the following to the bottom of the obj.conf configuration file:<Object name="XXXXTruePassApp">
Service fn="service-passthrough" servers="https://server222.de"
</Object>
# 2
Hello Elving,thanks for the fast answer.I know that this version has security vulnerabilities. The problem is, that the webserver must work with Apple WebObjects. And Apple supported this combination only to iWS6.1 SP2.Greets Chmeee-de
# 3
Hello Elving,
i use the Proxy Plugin with iWS6.1 SP7 now.
i configure the obj.conf like your description:
NameTrans fn="assign-name" from="/XXXXXTruePassApp/*" name="XXXXXTruePassApp"
<Object name="XXXXXTruePassApp">
Service fn="service-passthrough" servers="https://server222.de"
</Object>
-
The webserver is getting now the data form server222. but he get the data from https://server222.de/XXXXXTruePassApp.
But i need the data from https://server222.de/XXXXXTruePassAppProxy.
The user call at the webserver https://server111.de/XXXXXTruePassApp.
How must i change the configuration?
Thanks for help!
Greets Chmeee-de
# 4
Sorry, Chmeee-de, I somehow missed that you wanted to rewrite the requested URI.
The Web Server 6.1 Reverse Proxy Plugin is just a reverse proxy. It simply passes the request through to another server. It cannot rewrite the request URI.
Is there some reason you can't deploy and access the app at a consistent URI? That is, if you want the app to be accessible at /Foo, why don't you deploy the app at /Foo? That would be the simplest solution, and it would avoid problems with backend and frontend absolute paths being inconsistent.
If you can't deploy the app at the desired URI, I see two options:
a) Redirect from /XXXXXTruePassApp to /XXXXXTruePassAppProxy.
b) Use Web Server 7.0's URI rewriting functionality.
In Web Server 7.0, you could add the following above the NameTrans fn="assign-name" directive in the obj.conf configuration file:<If $uri =~ '/XXXXXTruePass/(.*)'>
NameTrans fn="restart" uri="/XXXXXTruePassProxy/$1'
</If>