Skip to content

Instantly share code, notes, and snippets.

@hissy
Last active November 3, 2016 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hissy/d9063ade6cfb6471a785938bfa3ef9db to your computer and use it in GitHub Desktop.
Save hissy/d9063ade6cfb6471a785938bfa3ef9db 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