Google Sitemaps

|

動的ページが多いのでaccess_logからURLを取得

★httpd.conf設定
イメージ無しでCustomLOG作成

# CustomLog logs/access_log common
CustomLog logs/access_log combined
SetEnvIf Request_URI "\.(gif)|(jpeg)|(jpg)|(png)$" no_log ←★追加
#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.



DocumentRoot /home/info/htdocs
ServerName hogehoge.jp
CustomLog logs/hogehoge.jp-access_log common env=!no_log ←★追加


★config.xml

base_url="http://www.hogehoge.jp/"
store_into="/home/info/htdocs/sitemap.xml.gz"
verbose="1"
>

に設定して不要な箇所は削除

★サーバーにアップ
sitemap_gen.py
config.xml

★crontab -eにて設定(root権限)

0 0-23/2 * * * python /home/hogehoge/htdocs/sitemap_gen.py --config=/home/hogehoge/htdocs/config.xml

参考URL
http://www.moratorian.com/old/doc/googlesitemaps.html

crontab
http://www.japan9.com/cgi/cron.cgi

カテゴリ

このブログ記事について

このページは、adminが2005年9月24日 16:36に書いたブログ記事です。

ひとつ前のブログ記事は「noip」です。

次のブログ記事は「DriveReady SeekComplete Error」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。