hasen's tech life

Twitter: @hasen

Apache

confファイルのリダイレクト処理とか,検索せずサラッと書きたい.

# confファイルのリダイレクト処理とか,検索せずサラッと書きたい. > Redirect /old https://new.page

Starting httpd: (98)Address already in useというエラーが出たので対応した.

# Starting httpd: (98)Address already in useというエラーが出たので対応した. $ sudo service httpd restart > Starting httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 > (98)Address already in use: AH0…

HTTPSの環境で,wwwなしにURLを統一した.

# HTTPSの環境で,wwwなしにURLを統一した. $ vi public/.htaccess++ RewriteCond %{HTTP_HOST} ^www.XXXX\.com ++ RewriteRule ^(.*) https://XXXX.com/$1 [R=301,L]

AWSのEC2でApacheのリダイレクトが効かないなと思ったら,以下の設定が異なっていたので変更した.

# AWSのEC2でApacheのリダイレクトが効かないなと思ったら,以下の設定が異なっていたので変更した. $ vi /usr/etc/conf/httpd.conf <Directory "/var/www"> -- AllowOverride All ++ AllowOverride None <Directory "/var/www/html"> -- AllowOverride None ++ AllowOverride All</directory></directory>

Bookmark (2016-05-15)

・DDDを使ってRailsアプリをリファクタリング http://qiita.com/takeshy/items/7fd1d0dfd3490a471b20 ・Fluentdの設定ファイルを快適に記述するたったひとつの正しいやりかた http://tagomoris.hatenablog.com/entry/2016/05/10/174743

ubuntu v12.04で"AH01796: AuthType Digest configured without corresponding module"というエラーが出たので対応

# ubuntu v12.04で"AH01796: AuthType Digest configured without corresponding module"というエラーが出たので対応 $ tail -f /PATH/TO/ERROR_LOG_FILE > AH01796: AuthType Digest configured without corresponding module $ vi /PATH/TO//***.conf

Bookmark (2016-02-24)

・サーバーサイドSwiftを実運用してみた http://aial.shiroyagi.co.jp/2016/02/serverside-swift-in-production/ ・ウィルス感染でWebサービスが20日間ダウン。本当にごめんなさい http://qiita.com/haminiku/items/646124c1ee5d0dd73064 ・快適な連打機能を…

Bookmark (2015-10-21)

・Git Concurrency in GitHub Desktop http://githubengineering.com/git-concurrency-in-github-desktop/ ・Amazon S3の利用料節約を考えてみる http://qiita.com/hit/items/3151208b7f01aaa1ea9d ・夏のインターン講義「1営業日で書くJavaScriptコンパイラ…

Vagrantでgnuplotを試した.

# Vagrantでgnuplotを試した. # 参考: gnuplot # 参考: Graphing ApacheBench Results Using GnuPlot $ mkdir test_gnuplot $ cd test_gnuplot $ vi Vagrantfile $ vi provision.sh $ vagrant up $ open benchmark.png あまりいいかんじのグラフではないけ…

コマンドabで"ab: invalid URL"というエラーが出たので対応.

# コマンドabで"ab: invalid URL"というエラーが出たので対応. # error$ ab -k -n 5000 -c 100 -g test.txt http://192.168.33.13 > ab: invalid URL > Usage: ab [options] [http[s]://]hostname[:port]/path > Options are: > ... (略) # success# URLに…

Bookmark (2015-08-15)

・Facebook Relayについてまとめ http://qiita.com/kenfdev/items/c3c3a11abb98803a51c6 ・フレームワークに見る Web セキュリティ対策 http://qiita.com/Jxck_/items/ec8e928f69d099b25764 ・AWS の API Gateway について調べてみた http://mid0111.hatenab…

Bookmark (2015-07-09)

・Apacheやnginxの同時接続状況における各リクエストの任意の属性をカウントする拡張を作った http://hb.matsumoto-r.jp/entry/2015/07/09/001623

Bookmark (2015-06-09)

・nginxでもapacheでも使用可能なDoS的アクセスを検知して任意の制御をするWebサーバ拡張をmrubyで作った http://hb.matsumoto-r.jp/entry/2015/06/08/224827 ・Vim プラグインの機能として golang を使う。 http://mattn.kaoriya.net/software/lang/go/2015…

apachectlでstatusを確認したら,注意文が出力されたので対応.

apachectlでstatusを確認したら,注意文が出力されたので対応. $ sudo apachectl status > The 'links' package is required for this functionality. $ sudo yum install -y elinks

httpd.confを書き換えたのでconfigtestをしたら,注意文が出力されたので対応.

httpd.confを書き換えたのでconfigtestをしたら,注意文が出力されたので対応. $ sudo apachectl configtest > httpd: apr_sockaddr_info_get( failed for vagrant-centos65.vagrantup.com) $ sudo vi /etc/hosts -- 127.0.0.1 localhost localhost.localdo…

Bookmark (2015-04-22)

・マルチホストDockerネットワーキング(1) http://tech-sketch.jp/2015/04/multi-host-docker-1.html ・A QUIC update on Google’s experimental transport http://blog.chromium.org/2015/04/a-quic-update-on-googles-experimental.html ・Web版Lindaに…

Bookmark (2015-02-06)

・Rubyのgemのソースコードを効率的に読む方法 http://ongaeshi.hatenablog.com/entry/read-a-ruby-gem-code-efficiently ・世界のメールの暗号化はたった一人の男に依存しており、開発資金はゼロになってしまっているという>衝撃の事実が判明 http://gigazi…

Bookmark (2014-11-21)

・niconicoの検索を支えるElasticsearch / niconico Elasticsearchhttps://speakerdeck.com/shoito/niconico-elasticsearch・Operating Apache Samza at Scalehttp://engineering.linkedin.com/…/operating-apache-samza-sc…・米ヤフーとモジラ、提携を発表-…