Hi MARUBUN,
Yes, this sounds like a scenario in which you need to set HTTPSPorts and GetPortFromHeaders. You'll want to set HTTPSPorts to any ports that the web server with the web agent listens on. If that web server is using default ports, you'll want to set HTTPSPorts=80,443 and GetPortFromHeaders-yes. With this configuration, when the web agent receives a request on one of these ports and needs to respond with a redirect, the agent will form the redirect with the HTTPS protocol even if the agent received the request via HTTP.
Regards,
Pete