IIS Redirect HTTP to HTTPS

Before redirection, we need SSL Certificate.For creating a free SSL Certificate Download Win-Acme it will automatically bind the certificate in IIS.Before generating certificate add-website under IIS for HTTP 1] Download…

Read more

How to Configure Pm2 Health for sending mails if any issue in services

Note: Replace yourdomain.com with you domain sudo su pm2 install pm2-healthvim ~/.pm2/module_conf.json {“pm2-logrotate”: {“max_size”: “500M”,“retain”: “200”,“compress”: “true”,“dateFormat”: “YYYY-MM-DD_HH-mm-ss”,“workerInterval”: “30”,“rotateInterval”: “* * * * 30”,“rotateModule”: “true”},“module-db-v2”: {“pm2-logrotate”: {},“pm2-health”: {}},“pm2-health”: {“smtp”: {“host”:…

Read more

How to auto-start Windows services

#start the following Windows services in the specified order: [Array] $Services = ‘MailService’,’SpamAssassin’,’OpenVPNServiceInteractive’,’Certify.Service’,’Schedule’; #loop through each service, if its not running, start it foreach($ServiceName in $Services){$arrService = Get-Service -Name $ServiceNamewrite-host…

Read more