Results 1 to 2 of 2

Thread: Rewrite url and path apache-style

Threaded View

  1. #1

    Rewrite url and path apache-style


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

    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

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

    [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...KB&title=Test] => [https://app2.example.com/pages/viewp...ageId=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. :-)

    Last edited by koan; 05-Dec-2018 at 02:15 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts