Skip to content

Instantly share code, notes, and snippets.

View gist:02a73d8767eaec73484a5def5fe5a72b
Aegir on Debian/jessie x86_64
VPS unknown / not a virtual machine
CPU 8
RAM 15771
XTR _XTRAS_LIST="ADM CSF FTP"
MFX _MODULES_FIX=YES
PFX _PERMISSIONS_FIX=YES
DBS _DB_SERIES=10.1
DNS _DNS_SETUP_TEST=YES
PKG _EXTRA_PACKAGES=
View gist:45cc7aea817c046925ac7146d8fd3d77
Aegir on Debian/jessie x86_64
VPS Linux KVM guest
CPU 6
RAM 12012
XTR _XTRAS_LIST="ADM CSF FTP CGP SR4 CSS"
MFX _MODULES_FIX=YES
PFX _PERMISSIONS_FIX=NO
DBS _DB_SERIES=10.1
DNS _DNS_SETUP_TEST=YES
PKG _EXTRA_PACKAGES=
View gist:d30c59ab835c81b2a22cd77ace364b2c
<?php # local settings.php
$request_type = ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ? 'SSL' : 'NONSSL';
if ($request_type != "SSL" && isset($_SERVER['HTTP_USER_AGENT']) && !preg_match('<ignore_url>',$_SERVER['REQUEST_URI'])){
header('X-Accel-Expires: 1');
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
header("Connection: close");
exit;
}