Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache Reverse Proxy Query |
|
Author |
|
BPDZenith
Joined: 25 Feb 2015 Posts: 1 Location: Carlisle
|
Posted: Thu 26 Feb '15 11:31 Post subject: Apache Reverse Proxy Query |
|
|
Hello.
i am new to Apache and have spent the last 2 weeks Working on Centos 7 & Apache 2.4
i am needing to proxy requests from my Apache 2.4 server with the name "app.domain.com" to a number of IBM HTTP servers that run on our IBM Maximo app servers, based on the context route for instance
app.domain.com/app1
app.domain.com/app2
app.domain.com/app3
i have found resources for standard reverse Proxy's useful and have managed to configure a basic proxy on the system.
The problem is the URL changes to the internal address after you login to the portal on the app server thus any external user doesn't have DNS resolution and the connection drops.
i have configured the ProxyPassReverse option on my proxy however upon further investigation it appears its not just HTML i need to proxy but also XML and JSON responses
http://www-01.ibm.com/support/docview.wss?uid=swg21662790
i wondered if someone one could suggest the best option on what part of Apache could achieve this, also check to see my code is correct that i have done so far would be helpful to see if i am missing anything. Thus is the only code i have added to the Http.conf file so far along with installing the proxy-html.conf
<VirtualHost *:80>
ProxyRequests Off
ServerName app.domain.com
ProxyPass /app1 http://192.168.1.0/maximo
ProxyPassReverse /app1 http://192.168.1.0/maximo
ProxyHTMLURLMAP http://192.168.1.0/maximo /app1
</VirtualHost>
another question is do i actually need the ProxyHTMLURLMAP code in the virtual host?
Thanks
Gordon |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 26 Feb '15 19:37 Post subject: |
|
|
ProxyHTMLURLMAP can be in server config, virtual host, directory.
But why separate it from the other Proxy stuff?
I think using ProxyHTMLExtended makes more sense.
Did you read the manual http://httpd.apache.org/docs/current/mod/mod_proxy_html.html ? I know RTFM sucks |
|
Back to top |
|
|
|
|
|
|