瀏覽模式: 普通 | 列表

網頁型態的BBS站

從這裡 http://blog.pixnet.net/Nelson/post/1480717 得知,
還滿新鮮的咧,到這裡 http://gaaan.com/ 參觀一下吧

[1.] 設置多筆 A 記錄

www IN A 10.0.0.1
www IN A 10.0.0.2
www IN A 10.0.0.3

      service named reload


[2.] 查詢時會有三筆記錄,但每次順序會不一樣
         dig www.ssorc.tw


[3.] 利用 rsync同步 web資料
         http://ssorc.tw/index.php?load=read&id=246


[4.] 引用 http://cha.homeip.net/blog/archives/2006/04/post_13.html

Web Site 資料同步注意事項

[閱讀全文]

網頁頁面下載的時間分析

Apache + Webalizer

[1.] apt-get install webalizer zlib libpng gd
 
[2.] 編輯 config,如果有多個 virtual host的 http log 要區分設定檔及內容設定,必存取到同個資料庫

      複製新檔
      cp webalizer.conf webalizer.conf-ssorc.tw


      vi webalizer.conf-ssorc.tw

# Apache 登錄檔完整路徑與檔名
LogFile   /var/log/httpd/ssorc.tw-access_log

# 選擇 log file 的格式
LogType   clf

# 當資料處理完畢之後,輸出的目錄
OutputDir  /var/www/usage/ssorc.tw

# 當你的 logrotate 不是一個月一次時,必需設定
Incremental     yes    

[閱讀全文]

標籤: apache

網站流量統計 - Apache + awstats

[1.] apt-get install awstats-6.5-3.fc4
 
[2.] vi /etc/httpd/conf/httpd.conf

CustomLog logs/ssorc.tw-access_log combined

[3.] vi /etc/httpd/conf.d/awstats.conf

#
# Content of this file, with correct values, can be automatically added to
# your Apache server by using the AWStats configure.pl tool.
#

#
# Directives to add to your Apache conf file to allow use of AWStats as a CGI.
# Note that path "/usr/share/awstats/" must reflect your AWStats install path.

[閱讀全文]

標籤: apache awstats

apache + proxy + squid + transparent

1. apt-get install squid

2. vi squid.conf

http_port 3128       # daemon 的 port
icp_prot 3130        # 被查詢封包觀察3130
 
cache_dir ufs /var/spool/squid 100 16 256
# <cache_dir> <aufs|ufs> <目錄所在> <MBytes大小> <dir1> <dir2>
# 這個暫存目錄下有 16 個目錄,而每個目錄中又有 256 個目錄

cache_access_log /var/log/squid/access.log


cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
 

[閱讀全文]

標籤: apache

apache + htaccess

方式一

1.  vi /etc/httpd/conf/httpd.conf

<Directory "/path/cross">
   AuthName "Need Password"
   AuthType Basic
   AUthUserFile /path/htpasswd  # 不需要與 /path/cross同一目錄
   require valid-user
</Directory>

2. htpasswd -c /path/htpasswd cross

當新建htpasswd檔時,使用 -c 參數,建立第二位User時,不能再用"-c",否則會覆蓋
存帳號與密碼檔案為 htpasswd
使用者為 cross

[閱讀全文]

標籤: apache