Forum Moderators: phranque
My client has 2 servers, one contains the E-business application tier and the other Oracle portal.
Say for ex, if the user access the 1 server by
i) [a1.xyz.com:8000...] and the 2nd server by
ii) [a2.xyz.com:7777...]
My client wants to introduce one more server which is a3.xyz.com, in which apache is installed and the request and response to the above 2 servers will be redirected through the a3.xyz.com
The user will be typing the source url as follows in their browsers.
i) [a1.xyz.com:8000...] ==> [a1.xyz.com:8000...]
ii) [a2.xyz.com:7777...] ==> [a2.xyz.com:7777...] .....
Something like the above which has to be redirected.
What are the configurations I should do in the httpd.conf file of the a3.xyz.com server
to implement this redirection server.
I'm helpless since I don't know much knowledge about the apache webserver.
Can anybody help me as early as possible.
Thanks.
[edited by: jdMorgan at 2:29 am (utc) on Mar. 24, 2005]
[edit reason] Fixed horizontal scroll due to long line. [/edit]
It's the other way round.
My client wants to type like this as I stated in my previous.
i) [a1.xyz.com:8000...] ==> [a1.xyz.com:8000...]
ii) [a2.xyz.com:7777...] ==> [a2.xyz.com:7777...] .....
Or, Is there any other suggestions.
Thanks
My client wants to introduce one more server which is a3.xyz.com, in which apache is installed and the request and response to the above 2 servers will be redirected through the a3.xyz.com
1) as jd suggested, using mod_proxy (either directly, or via mod_rewrite) to proxy the connections back to the other two servers. Under mod_proxy, a request could come in for, say, [a3.xyz.com...] the Apache instance on a3.xyz.com would make an *outbound* HTTP request to, for instance, [a1.xyz.com:8000...] and return the content that URL to the user. All the user sees in their browser is [a3.xyz.com...] There are three potential advantages here:
2) Return a redirect to the back-end servers (a 302, for instance). The advantage here is that it's trivial to implement. The *downside* is that since your back-end servers are running on high-numbered ports, not all users will be able to get them (some firewalls block all outbound ports except port 80. Some are less restrictive, but still don't allow outbound requests to most high-numbered ports). You also lose all the potential benefits of front-end server caching.
Once we have a better idea of which implementation is better for your environment, we'll be able to help you more.