By LS1
I have a few questions after following this guide https://www.digitalocean.com/community/tutorials/lemp-stack-monitoring-with-monit-on-ubuntu-14-04
The below code indicates the website on port 80 & the non www version of the domain
check process nginx with pidfile /var/run/nginx.pid
group www-data
start program = "/etc/init.d/nginx start"
stop program = "/etc/init.d/nginx stop"
if failed host example.com port 80 protocol http then restart
if 5 restarts within 5 cycles then timeout
As a newbie my questions are: since my website is running on port 443 and I am using the www version:
1 - Should I change from port 80 to 443 since I am using https? 2 - Should I change from example.com to www.example.com or https:www.example.com, because I am using the www version?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
1 - Should I change from port 80 to 443 since I am using https?
Yes. You should also change protocol http to protocol https
2 - Should I change from example.com to www.example.com or https:www.example.com, because I am using the www version?
If you want to check a site running on www.example.com then you should use www.example.org. The https is specified by the protocol and port options so adding https:// to the hostname is not necessary and may not work.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.