Skip to content

Instantly share code, notes, and snippets.

View axshia's full-sized avatar

Ryo Uemoto axshia

  • ubros
  • Hiroshima
View GitHub Profile
@axshia
axshia / sakura.md
Last active November 7, 2020 15:22
さくらVPS(CnetOS7)が起動しなくなったので、ブート領域を修復した話

概要

さくらのVPS(CenoOS7)が障害対応のハードウェア交換で起動しなくなったので、
その対応策の備忘録です。

経緯

http://support.sakura.ad.jp/mainte/mainteentry.php?id=22553
これが原因か不明ですが、この時期にサーバへアクセスできなくなる障害が発生しました。

サーバには、Nginx/Postfix/PostfixAdminが稼働中。   teratermでログイン不可なので、さくらVPSのコンソールからログインを試みるもログイン不可。

@axshia
axshia / AppController.php
Last active November 23, 2015 11:15
CakePHP CrudPlugin JWT設定例
public function initialize()
{
parent::initialize();
$this->loadComponent('RequestHandler');
$this->loadComponent('Flash');
$this->loadComponent('Auth', [
'authenticate' => [
'Form' => [
@axshia
axshia / server.js
Created November 23, 2015 01:31
GeneratorGulpAngularのローカル開発時のプロキシ設定例
var options = {
target: 'http://dev.webreader.jp', // target host
changeOrigin: true, // needed for virtual hosted sites
ws: false, // proxy websockets
pathRewrite: {
//'^/api': '/new/api' // rewrite paths
},
proxyTable: {
// when request.headers.host == 'dev.localhost:3000',
// override target 'http://www.example.org' to 'http://localhost:8000'