Forum Discussion
Generic HTTP Monitor
So I have 12 servers that I want to monitor for a xml file with the word "Traffic." I would like to create one health monitor to attach to all 12 servers rather than create individual ones. When I do the following it works.
Send: GET /pub/tcd.xml HTTP/1.1\r\nHost: server1.domain.com \r\nConnection: Close\r\n\r\n\r\n Recieve: Traffic
I thought I could just leave the Host header blank GET /pub/tcd.xml HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n\r\n but that does not work. Anyone have any suggestions on why this is not working?
5 Replies
- OTS02
Cirrus
Seems like the webservers may be set up parse by the host header. I have some webservers that act this way, and I am forced to create and apply specific monitors to specific pool members. It's awkward. Maybe someone else knows a solution that will help us both!
- SynACk_128568
Cirrostratus
I think in http 1.1 host field is necessary . your server wil return 400 bad request when you telnet to the pool member:port and GET /pub/tcd.xml
- nag_54823
Cirrostratus
yes synack is correct. We need host header for http 1.1.
- Chris_G_01_1415
Nimbostratus
I had the feeling that the host field was needed. I can create 12 different monitors for each host but was hoping to find an easier way of doing this. Thanks everybody for your help.
- mimlo_61970
Cumulonimbus
If the servers aren't processing the host header, you might be able to get away with a dummy name in the host header. Just make it recognizeable, otherwise the server admins get all squirrelly when they check the logs and see requests for the wrong host over and over again :)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com