Solved

Is it possible to reverse proxy (for Apache), multiple sites, but all have the same path?

Posted on 2006-06-30
3
509 Views
Last Modified: 2012-05-05
I have an SAP environment, where we are doing Reverse proxy for everything.

The reverse proxy is running correctly, except 2 of the subsites from the portal have different server names, but the same path.

How do I reverse proxy for:

http://server1.proxy.net:8023
http://server2.proxy.net:8006

Their unproxied paths are the same for all content: (except the cookie, but the cookie path is the same for both):
/sap/bc/gui/sap/its/mimes

The first statement from the proxied portal (mainproxy.proxy.net) to the subsites (server1,server2) calls the rewrite rule:
for the cookie)
RewriteRule ^/sap(.*)/bc/gui/sap/its/webgui(.*) http://server1.proxy.net:8023$0 [P]
RewriteRule ^/sap(.*)/bc/gui/sap/its/webgui(.*) http://server2.proxy.net:8006$0 [P]

But it never goes to the second.  

Is there a way to examine the headers, or a way to do if/then statements?
Thanks for looking at my question.

Steph
0
Comment
Question by:blasapher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 250 total points
ID: 17115953
Yes, you can check http request headers with a RewriteCond.

To check the value of a Cookie sent in the http request by the browser, you might want to use

RewriteCond %{HTTP_COOKIE} something
RewriteRule ^/sap(.*)/bc/gui/sap/its/webgui(.*) http://server2.proxy.net:8006$0 [P]
RewriteRule ^/sap(.*)/bc/gui/sap/its/webgui(.*) http://server1.proxy.net:8023$0 [P]
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question