Solved

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

Posted on 2006-06-30
3
504 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtual host in apache 31 108
whm high memory usage in processes 7 119
Apache module 5 61
Web site: http forwards to https causing 301 errors - SEO issue? 26 55
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

763 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