haproxy http_to_https warning
-
Since upgrading to pfSense+ 22.01 from pfsense CE, I have noticed that my http to https frontend:
Screenshot_2022-02-26-07-38-06-55_3aea4af51f236e4932235fdada7d1643.jpg
is giving me the following warning:
WARNING] 056/073023 (98964) : parsing [/var/etc/haproxy/haproxy.cfg:85]: previous 'http-request' action is final and has no condition attached, further entries are NOOP.
The cause of this is that an ACL was not provided for this action's condition.
I have worked around the warning by adding an ACL matching any host:
.+
However, I wonder if this is the right way to appaorach this issue.
-
-
-
-
@returntrip Can you explain this further what you did? Got the same error message.
-
I was able to solve this by following the HAProxy documentation regarding HTTP to HTTPS redirect.
Adding
unless { ssl_fc }
to my ACL action on the front end got rid of the error.Now it looks like :
scheme https unless { ssl_fc }
-