Forum Discussion

rlong_77885's avatar
rlong_77885
Icon for Nimbostratus rankNimbostratus
May 22, 2008

Server is redirecting from https to http

I am a newbie to iRules. I have a problem that is opposite of everyone else in this forum. My client is using https://virtualserver.address to connect to my Virtual Server. I configured my VS with port 443 and SSL profile; however, my application server is running on port 8555. I configured my server pool members with port 8555. When the application server returning the data, it redirects to http://virtualserver.address and it fails.

 

 

Please help!

3 Replies

  • Can you enable rewriting of redirects and retest? For more info, you can check the config guide for your version on AskF5.com.

     

     

    Aaron
  • Hi Aaron,

     

    Yes I tried that, but it only worked for the first request (see output from httpwatch below). It didn't rewrite and redirect for the second request, which is the login page. I would like for it to rewrite/redirect every transaction during the session.

     

     

    Thanks,

     

     

    /rlong

     

     

    Redirect to https://172.16.16.254/index.jsp

     

    + 0.0630.011541400GET200 text/html;charset=ISO-8859-1 https://172.16.16.254/index.jsp

     

    + 0.0000.94400GETERROR_INTERNET_CANNOT_CONNECT*http://172.16.16.254/processLogin.do
  • I'm not sure why the rewriting wouldn't work for subsequent responses. Is the second request (to /processLogin.do) on the same TCP connection as the first one which is rewritten correctly?

     

     

    Aaron