OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: weswitt on July 30, 2020, 07:02:37 pm

Title: HAPROXY HTTP Rewrite
Post by: weswitt on July 30, 2020, 07:02:37 pm
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.
Title: Re: HAPROXY HTTP Rewrite
Post by: cmdr.adama on July 31, 2020, 12:46:02 am
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?