Tag: さくらのレンタルサーバー
mysql -h mysql111.db.sakura.ne.jp -uUSER -pPASS
ssh -N -L 13306:mysql999.db.sakura.ne.jp:3306 sakurauser
mysql -h 127.0.0.1 --port 13306 -uDBUSER -pDBPASSWD
set names utf8;select * from wp_posts
RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?xyz\.sakura\.ne\.jp$ [NC] RewriteRule .* https://srcw.net%{REQUEST_URI} [R=301,L]
UPDATE wp_options SET option_value = 'http://srcw.net' where option_name IN ('home','siteurl');
RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?srcw\.net$ [NC] RewriteRule .* http://srcw.net%{REQUEST_URI} [R=301,L]
if( isset($_SERVER['HTTP_X_SAKURA_FORWARDED_FOR']) ) { $_SERVER['HTTPS'] = 'on'; $_ENV['HTTPS'] = 'on'; $_SERVER['HTTP_HOST'] = 'srcw.net'; $_SERVER['SERVER_NAME'] = 'srcw.net'; $_ENV['HTTP_HOST'] = 'srcw.net'; $_ENV['SERVER_NAME'] = 'srcw.net'; }
cat access_log_20170528| cut -d' ' -f2 |sort |uniq -c |sort -n