Forum Discussion

esch_26881's avatar
esch_26881
Icon for Nimbostratus rankNimbostratus
Mar 30, 2010

redirect 8080 to 8443

Hallo,

 

i have problems with the following requirements.

 

 

incoming client requests on vs:8080 should be redirectd to https on port 8443.

 

 

all client requests to vs:8443(clssl) should be forwarded to the pool server:80 and uri shoud always start with /abc-test/

 

 

thank you in advance for your support

 

2 Replies

  • If you'd like to have a VS defined on port 8080 and send an HTTP redirect to the https VIP on port 8443, you can use an HTTP class (in 9.4+) or an iRule. The class action would be redirect to "https://1.1.1.1:8443" where 1.1.1.1:8443 is the HTTPS VS. For an iRule, you'd add this as:

     
     when HTTP_REQUEST { 
      
         Redirect all requests 
        HTTP::redirect "https://1.1.1.1:8443" 
     } 
     

    On the 8443 VS, you'd add a client SSL profile and define the pool members on port 80. LTM will do destination port translation as long as you leave port translation at its default setting of enabled.

    Can you clarify what you want to do in terms of ensuring the URI always starts with /abc-test/? What do you want to happen if a client makes a request for a URI which doesn't start with this string?

    Aaron
  • thank you for this fast replay.

     

    I am with you, that we shouldn´t configure static like this, but my customer is pretty sure, that the uri always starts like this.

     

    best regards

     

    elmar