Skip to content

Instantly share code, notes, and snippets.

@mosugi
Last active March 18, 2017 06:44
Show Gist options
  • Save mosugi/8e6143fe688e18b32c27e9a2bcc1109c to your computer and use it in GitHub Desktop.
Save mosugi/8e6143fe688e18b32c27e9a2bcc1109c to your computer and use it in GitHub Desktop.
さくらインターネット SSL
if( isset($_SERVER['HTTP_X_SAKURA_FORWARDED_FOR']) ) {
$_SERVER['HTTPS'] = 'on';
$_ENV['HTTPS'] = 'on';
$_SERVER['HTTP_HOST'] = 'mosugi.com';
$_SERVER['SERVER_NAME'] = 'mosugi.com';
$_ENV['HTTP_HOST'] = 'mosugi.com';
$_ENV['SERVER_NAME'] = 'mosugi.com';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment