logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Reverse Proxy Query
Author
BPDZenith



Joined: 25 Feb 2015
Posts: 1
Location: Carlisle

PostPosted: Thu 26 Feb '15 11:31    Post subject: Apache Reverse Proxy Query Reply with quote

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

PostPosted: Thu 26 Feb '15 19:37    Post subject: Reply with quote

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 Mr. Green
Back to top


Reply to topic   Topic: Apache Reverse Proxy Query View previous topic :: View next topic
Post new topic   Forum Index -> Apache