Archive > 19.7 Legacy Series

HAPROXY HTTP Rewrite

(1/1)

weswitt:
I have configured HAPROXY for my network and I'm seeing an issue that I don't know how to resolve.

When I issue an HTTP GET request to my address using HTTP OpnSense rewrites the request to HTTPS:

* Connected to weather.wittfamily.com (24.16.42.2) port 80 (#0)
> GET / HTTP/1.1
> Host: weather.wittfamily.com
> User-Agent: curl/7.64.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Location: https://weather.wittfamily.com/
< Content-Length: 0
< Date: Thu, 30 Jul 2020 16:48:47 GMT
< Server: OPNsense
<
* Connection #0 to host weather.wittfamily.com left intact

Is there a way that I can disable this?

My guess is that this is happening in the HAPROXY public service definition.

cmdr.adama:
First off, this would probably better off here https://forum.opnsense.org/index.php?board=28.0
Secondly could you post your haproxy config so we can get a better idea on what's going on?

Navigation

[0] Message Index

Go to full version