tdiaryのインストール

オフィシャルサイト

基本インストール

マニュアル通りに。特に注意することは無い。

/usr/bin/envがうまくいかない場合は、rubyのリンクを/usr/binの下に作ればよいっぽい。

.htaccessの設定

Options all

# if you run tDiary with symbolic link, use settings below.
#Options +FollowSymLinks

# if making anchor style as 'YYYYMMDD.html', use settings below,
# then change 'your_URL_of_index.rb' and use  html_anchor.rb plugin.
# But this method makes error into error_log of apache. It is better
# method to use mod_rewrite.
#
<Files ~ "^([0-9]{4}|[0-9]{6}|[0-9]{8}).html$">
    ErrorDocument 404 index.rb
</Files>

AddHandler cgi-script .rb
DirectoryIndex index.rb

RewriteEngine off
RewriteRule ^([0-9]+)\.html$  /var/www/html/tdiary/index.rb?date=$1

<Files "*.rhtml*">
        deny from all
</Files>

<Files "tdiary.*">
        deny from all
</Files>

<Files update.rb>
        AuthName      tDiary
        AuthType      Basic
        AuthUserFile  <<パスワードファイル>>
        Require user  <<ユーザー名>>
</Files>

<Files plandoseeedit.rb>
        AuthName      tDiary
        AuthType      Basic
        AuthUserFile  <<パスワードファイル>>
        Require user  <<ユーザー名>>
</Files>

Last modified:2013/08/03 10:04:49
Keyword(s):
References: