Apache2で起動時にSSL証明書の秘密鍵のパスフレーズを自動入力する設定 /etc/httpd/conf.d/ssl.conf # Pass Phrase Dialog: # Configure the pass phrase gathering process. # The filterin… 高瀬 裕介ハック2013.07.09 1,331
Apache2でSSIを使うための設定 httpd.conf AddType text/html .shtml AddOutputFilter INCLUDES .shtml DirectoryディレクティブでOptionにincludesを入れるのも忘れずに… 高瀬 裕介ハック2013.07.08 467
VPSでrootで直接SSHログインできなくする # adduser admin # passwd admin # usermod -G wheel admin # vi /etc/pam.d/su #auth required pam_wheel.so use_uid… 高瀬 裕介ハック2013.07.05 283
Tomcatのサービスが異常終了していたら起動コマンドを実行するスクリプト vim /root/scripts/watchTomcat.sh #!/bin/sh source /root/.bash_profile /sbin/service tomcat6 status if [ $? -eq… 高瀬 裕介ハック2013.07.04 1,247
ソースコンパイルしたPostgreSQLのデーモン起動用スクリプト /etc/init.d/mypostgres #!/bin/sh # # PostgreSQL start and shutdown script # # chkconfig: 345 90 11 # descripti… 高瀬 裕介ハック2013.07.03 418
mod_rewriteで画像ファイルすべてにphpをかませるリダイレクト設定 こちらの記事で紹介したimage.phpにimagesフォルダ以下のすべての画像をリダイレクトさせる設定です <IfModule mod_rewrite.c> RewriteEngine On Rewrite… 高瀬 裕介ハック2013.06.27 1,052
S3上のコンテンツをPHP経由で表示 ・http://aws.amazon.com/jp/sdkforphp/ からSDKをダウンロードしてスクリプトフォルダに設置します。・config.inc.phpを書き換えてシークレットキーとアクセスキーを変更します。… 高瀬 裕介ハック2013.06.26 1,443