Janyk

Janyk

Planned

I would like to have the ability to specify a custom Host header. Currently, I have a few endpoints behind Cloudflare but I would like to put up a monitor on the origin server with Host header so the webserver returns the correct app.

Currently this is possible by adding a custom header in the check, but when doing this, it fails the certificate check.

Hostname https://xxx.xxx.xxx.xxx is not included in certificate. Covered hostnames are: app.hostname.com

Janyk

Janyk

Item author
· · Edited
·

I currently have it set up like this, but this will create an incident for an incorrect cert:

no votes yet
Bjarn Bronsveld

Bjarn Bronsveld

·
·

That's interesting, thanks. I'll take a closer look at this and let you know.

no votes yet
Bjarn Bronsveld

Bjarn Bronsveld

·
·

@Janyk Apologies for this to take so long, I just put it back on my radar.

Anyway;

I think this behaviour is correct, however, what you're looking for possibly is the option to force resolving a hostname to an IP address (https://curl.se/libcurl/c/CURLOPT_RESOLVE.html).

If this is what you're looking for, I can add it as it might be interesting to others too :)

no votes yet
Janyk

Janyk

Item author
·
·

@Bjarn yep- that works as well! :)

no votes yet
You may use @ to mention someone.

Specify custom Host header for monitor

(423 days ago)
2 total votes
Liam Seys Janyk
  • Bjarn Bronsveld moved item to board Planned

    1 year ago
  • Bjarn Bronsveld moved item to board Under review

    1 year ago
  • Janyk created the item

    1 year ago
  • Janyk moved item to project Monitors

    1 year ago