Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
KoAn Frequent Contributor.
Frequent Contributor.
659 views

Rewrite url and path apache-style

Hi,

is it possible to do some rewrite actions for two configured proxies in nam (appliance) the way apache can do it?

Scenario:
Configured Proxy App1 - secure application but reproduces content of App2 through the same database (but behind a login that can not be disabled)
Configured Proxy App2 - public application

Problem:
Rewrite Url and Path (also crop a part of the query string) to fit the content of App2

Example:
[https:// app1.example.com/servicedesk/customer/kb/view/2065705?applicationId=123&spaceKey=KB&title=Test]
[https:// app2.example.com/pages/viewpage.action?pageId=2065705]

With Apache mod_rewrite it would be very simple:
# Rewrite --- [https://app1.example.com/servicedesk/customer/kb/view/2065705?applicationId=123&spaceKey=KB&title=Test] => [https://app2.example.com/pages/viewpage.action?pageId=2065705]
RewriteCond %{HTTP_HOST} ^app1\.example\.com$
RewriteCond %{QUERY_STRING} (^|&)applicationId=123($|&)
RewriteCond %{QUERY_STRING} (^|&)spaceKey=KB($|&)
RewriteCond %{QUERY_STRING} (^|&)title=Test($|&)
RewriteRule ^servicedesk/customer/kb/view/2065705$ https://app2.example.com/pages/viewpage.action?pageId=2065705&%{QUERY_STRING}


Will this scenario be possible with the rewriter profile in access gateway or with an authorization redirect policy?
If Yes, how do i have to configure the access gateway?
I have now tried really everything that i thougt it could be solution but nothing seems to work. Documentation on this is very poor.


An alternate possibilty would be to do the rewriter action with the apache on the backend webserver but that also kills some perfomance and is not the best solution.
Rewriter actions should happen at the gateway with which the the client is talking to.


Anyone have an idea how I could solve this problem, would be very grateful for getting some input or solutions. 🙂


Andreas
0 Likes
1 Reply
AutomaticReply Absent Member.
Absent Member.

Re: Rewrite url and path apache-style

koan,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit https://www.microfocus.com/support-and-services and search the knowledgebase and/or check
all the other self support options and support programs available.
- Open a service request: https://www.microfocus.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.microfocus.com)
- You might consider hiring a local partner to assist you.
https://www.partnernetprogram.com/partnerfinder/find.html

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.microfocus.com/faq.php

Sometimes this automatic posting will alert someone that can respond.

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot.

Good luck!

Your Micro Focus Forums Team
http://forums.microfocus.com



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.