Christian Bauer Posted August 19, 2014 Share Posted August 19, 2014 Hi Guys, a customer of us had need a responder from his website example: https://customer.com to https://customer.com/direction/blubb.jsf like this: Action: "HTTP/1.1 301 Moved Permanently " + "Location: https://" + HTTP.REQ.HOSTNAME.HTTP_URL_SAFE + "/direction/blubb.jsf " Policy: HTTP.REQ.URL.PATH_AND_QUERY.REGEX_MATCH(re#^\/$#) Its a responder policy and it works fine in all browsers except chrome, there is the following errorcode. "ERR_RESPONSE_HEADERS_TRUNCATED" I think the problem came from the changed metadata in html by the chrome browser, he don´t let it works with "moved 301" on SSL. Can i change the responder on any way to dont change the metadata for Chrome? Or have you any other ideas for this problem, the customer need the responder and the site must work on chrome. Netscaler: 10.5 VPX200 best regards Markus Link to comment Share on other sites More sharing options...
Sanjith Abraham1709153204 Posted August 19, 2014 Share Posted August 19, 2014 Try 302 redirect instead of 301 . Link to comment Share on other sites More sharing options...
Christian Bauer Posted August 20, 2014 Author Share Posted August 20, 2014 Hi, i used now with responder 302 tr and it works thx. best regards Markus Link to comment Share on other sites More sharing options...
Nico Sadofschi Posted September 6, 2019 Share Posted September 6, 2019 Hi, Adding this here if any face the same issue as 302 didn't solve the issue for me (06/09/2019). Two variants to make this work: 1: add responder action ActRS_Red2Https_NAME respondwith q{"HTTP/1.1 301 Moved Permanently\r\n" + "Location: https://" + HTTP.REQ.URL.PATH_AND_QUERY + "\r\n\r\n"} Note the last part of the expression \r\n\r\n. That makes the "magic" 2- add responder action ActRS_Red2Https_NAME redirect "\"https://\" + HTTP.REQ.HOSTNAME + HTTP.REQ.URL.PATH" -responseStatusCode 302 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now