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
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