How To Force Postfix To Use Only IPv4

Author: , August 12th, 2021

vi /etc/postfix/main.cf

service postfix restart

How To Determine HTTP Protocol Using PHP

Author: , May 11th, 2012

$protocol = (!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] !== ‘off’) ? “https:” : “http:”;

How To Determine The Current Protocol Using Javascript

Author: , February 18th, 2011

var myPrefix = ‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’;