Forum Discussion

Gajji's avatar
Gajji
Icon for Cirrostratus rankCirrostratus
Sep 19, 2020

Irule redirection from public to private url

Is it feasible to redirect URL

from https://www.xyz.com/mysite (this is public url/External accessible)

 

to https://wwww.abc.com/mysite (this is private url/Internally accessible only)(no pool for this as of now do i need to create so that we can redirect to it)

 

  • , Yes you can redirect but it will create problem from internet. As if someone is trying to access https://www.xyz.com/mysite from internet, iRule will redirect it to https://wwww.abc.com/mysite and as this URL is only private URL. So, on public internet, it won't resolve any IP address. Redirection will happen but the content wont load. If you want to do such redirection from internet, first externalize/publish abc.com private URL over the internet so it will be accessible on internet too then set required redirection.

     

    Within Intranet/LAN, the abc.com will load as expected and so redirection from xyz.com to abc.com will happen and required page will get load as expected.

    • Gajji's avatar
      Gajji
      Icon for Cirrostratus rankCirrostratus

      OK thanks what IRULE should i use.. i tried few but didn't work..

  • OmarS's avatar
    OmarS
    Icon for Nimbostratus rankNimbostratus

    you can try reverse proxy

    https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-12-1-0/17.html

     

    It works really well for me for static html pages. I can't get it to work with out application with jsp pages.