Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created October 21, 2019 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eksiscloud/28a30a65c569b31598e691141a9d6275 to your computer and use it in GitHub Desktop.
Save eksiscloud/28a30a65c569b31598e691141a9d6275 to your computer and use it in GitHub Desktop.
Monit conf for a host/domain/site with Wordpress
### example.tld
check host example.tld with address www.example.tld
# ICMP check
if failed icmp type echo
for 2 times within 2 cycles
then alert
# HTTP check
if failed port 80 protocol http
with http headers [Host: www.example.tld, Cache-Control: no-cache]
and request /pong/ with content = "www.example.tld"
then alert
# HTTPS check
if failed port 443 type tcpSSL protocol http
with http headers [Host: www.example.tld, Cache-Control: no-cache]
and request /pong/ with content = "www.example.tld"
then alert
@eksiscloud
Copy link
Author

At Wordpress:

  • publish a page named pong
  • exlude it from sitemap and add no-index, no-archive tags (Math Rank is a briljant SEO-plugin)

If you have Varnish:
if (req.url ~ "/pong") {
return (pass);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment