Forum Discussion

paul_dcc's avatar
paul_dcc
Icon for Nimbostratus rankNimbostratus
Dec 02, 2009

How to replace the Host Name with a differnet one

Hello,

 

 

We have a customer that needs to connect to a SAP web portal, they want to be able to just type in https://des and have this redirect to https://des.dorsetcc.local which is not a problem, but they also need to have the new host redirect to be displayed in the browser.

 

 

So the user just put’s in des in the browser and when it connects the browser so display des.dorsetcc.local (full domain name)

 

 

Any help would be great.

 

2 Replies

  • You can send an HTTP redirect to the client and they will see the address bar update to the new location value. This assumes that des.dorsetcc.local resolves to the VIP address for the clients.

     
     when HTTP_REQUEST { 
      
         Check host header value 
        if {[string tolower [HTTP::host]] eq "des"}{ 
      
            Redirect client to the full host name 
           HTTP::redirect "https://des.dorsetcc.local[HTTP::uri]" 
        } 
     } 
     

    Aaron