Skip to content

Instantly share code, notes, and snippets.

@katzueno
Forked from hissy/app.php
Created November 3, 2016 08:46
Show Gist options
  • Save katzueno/5495073d9e7aa3958de645bd76d167b4 to your computer and use it in GitHub Desktop.
Save katzueno/5495073d9e7aa3958de645bd76d167b4 to your computer and use it in GitHub Desktop.
#concrete5 HTTPS on SAKURA Internet
<?php
// application/bootstrap/app.php
$request = Request::getInstance();
if ($request->headers->has('HTTP_X_SAKURA_FORWARDED_FOR')) {
$request->server->set('HTTPS', 'on');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment