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: Help - Strange behaviour with mod_substitute
Author
andre.fischer



Joined: 31 Jan 2014
Posts: 8
Location: Canada, Toronto

PostPosted: Wed 14 Dec '16 16:09    Post subject: Help - Strange behaviour with mod_substitute Reply with quote

Hi. I'm running Apache 2.4.18 on RHEL 6.7 as a Reverse Proxy. The reverse proxy works fine. When the substitute command is not used, httpwatch shows 31 requests. One contains a link directly to the backend server and two are bad URLs (https://:/).

I then add the substitute command to replace the backend server URL with the client's URL. That works fine.

Unfortunately, httpwatch now shows only 24 requests. Two of the missing are the bad URLs; and the remaining 5 are for .gifs. More importantly, the application is showing a 'Loading content' message that never goes away.

I'm at a loss as to why using the substitute command would cause these 7 requests to no longer appear. I'm wondering if these missing items are causing the 'Loading content' message.

The code is:

ProxyRequests Off

ProxyPass /CallidusPortal/ http://dmobeo-d18.on.xyz.ca:9117/CallidusPortal/
ProxyPassReverse /CallidusPortal/ http://dmobeo-d18.on.xyz.ca:9117/CallidusPortal/

ProxyPass /TrueProducer-TPRO/ http://dmobeo-d18.xyz.ca:9117/TrueProducer-TPRO/
ProxyPassReverse /TrueProducer-TPRO/ http://dmobeo-d18.xyz.ca:9117/TrueProducer-TPRO/

# Use Substitution to replace backend URLs with the correct client URL

SetOutputFilter SUBSTITUTE
Substitute "s|http://dmobeo-d18.xyz.ca:9117/|https://dev.truechannel.int.xyz.ca:443/|i"
RequestHeader unset Accept-Encoding



Thank you in advance for any help.


Andre Fischer.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Thu 22 Dec '16 21:50    Post subject: Reply with quote

I think you could exclude with another ProxyPass the image folder so the request would go directly to the correct frontend server.
Back to top


Reply to topic   Topic: Help - Strange behaviour with mod_substitute View previous topic :: View next topic
Post new topic   Forum Index -> Apache