Forum Discussion
Bastien_8356
Nimbostratus
Jul 14, 2011HTTP health monitor generate an apache error
Hi,
I configure the basic http health monitor (GET /\n\r) on my web servers, I have this in my apache error log :
[Thu Jul 14 13:39:44 2011] [error] [client x.x.x.x] Attempt to serve directory: /var/www/html/
Can you help me to get rid of any error, it's quite polluting my logs for nothing.
Thanks !!
- nathe
Cirrocumulus
Bastien - Hamish
Cirrocumulus
A couple of things........ - Bastien_8356
Nimbostratus
With GET /blank.gif HTTP/1.1\r\nHost:\r\nConnection: Close\r\n\r\n , still the same - Hamish
Cirrocumulus
The exact same error? - James_Miller_44
Nimbostratus
I found that for http 1.1 you need to define your host. Like so. - Hamish
Cirrocumulus
Yes. HTTP/1.1 included the previously optional host header as a mandatory item. For monitors it's not really worthwhile going to HTTP/1.1 (Unless you have some strange server that requires it :), as the monitor can't add the host header dynamically (Sadly), so you have to create a new monitor every time (It would be nice if you could specify a FQDN in a VS for attached monitors, but that creates problems in itself as monitors are attached to pools and not VS's.... That would possibly require re-architecting so you could instantiate a monitor per VS:Pool pairing... And have different poolmember status per attached VS... Or just a FQDN per pool maybe to use on the monitor... - Your strings will vary a bit depending on your version. Check out this solution article, covers what you're looking for...
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects