每壹台IIS與Apache主機都可以用來存放製作好的網頁,如果轉型為虛擬主機也可以,可以存放多個不同的網頁.
但是怎麼知道這個網站流量多少呢?這邊簡單紀錄一下
A.需要gd套件
B.需要webalizer套件
C.修改httpd.conf中的設定檔
<VirtualHost 1.1.1.5>
ServerAdmin afree@mail.qq.com.tw
DocumentRoot /var/www/html/test
ServerName www.test.com.tw
DirectoryIndex ch.htm home.php index.php index.htm index.html index.html.var
ErrorLog logs/afree-error_log ------>此網站錯誤紀錄
CustomLog logs/test-access_log common --->此網站存取紀錄
</VirtualHost>
D.複製 /etc/webalizer.conf 成此虛擬網站的設定 /etc/webalizer.test.conf
#記錄檔位置
LogFile /var/log/httpd/test-access_log
#資料輸出位置
OutputDir /var/www/html/test/traff
#設定主機名稱
HostName www.test.idv.tw
E.在 /var/www/html/test網站目錄中建traff目錄
F.執行 webalizer ,將結果輸出
/usr//bin/webalizer -c /etc/webalizer.test.conf
G.開啟瀏覽器輸入
http://www.test.com.tw/traff看到下列圖示就代表成功了
點取日期就可以看到當月流量圖了
如果有任何Linux問題 歡迎來電洽詢 電話22429995 希文資訊