If you find yourself needing to monitor a website that shares a domain but is not your production server such as a backup or non-production site, you can do this with the proper monitor setup using host headers.
What types of monitors work for this?
You can set up this type of monitoring using HTTP, HTTPS, and web service monitors. Unfortunately, this doesn’t work with the Full Page Check, Real Browser Check, or Transaction Monitoring.
What you need
To set up monitors with host headers you need:
- The URL the web server is listening to, and
- The IP address of the server Uptrends needs to access directly.
Setting up the monitor
To set up a monitor:
Open an existing or new monitor
Enter the IP Address and the domain name in an inverted fashion into the URL field on the Main tab.
Switch to the Advanced tab.
Enter “Host:” followed by the domain name in the HTTP request headers field (see below).
Add a Page content match (Error Conditions tab) that contains content unique to the backup site that is not on the live site to ensure that you are accessing the correct site (optional).
Complete your setup and click.