Author Archives: johnpupu

換Apache To Lighttpd

OK 很簡單~~
ports 裝一裝後
我只用了幾個用得到的mod
“mod_alias”,”mod_access”,”mod_fastcgi”,”mod_simple_vhost”,”mod_accesslog”
就這些
我是先讓lighttpd 和apache 並用
把lighttpd 開81 port 去run 看看有沒有問題 ::-p:
沒問題的話~~再把apache 停掉 然後把lighttpd 的port 改成80 就好了。
然後因為有用fastcgi
所以把他原本comment 起來的fastcgi 部份拿掉comment
至於virtual host 的部份
Manual 上有寫到
DocumentRoot = server-root + hostname + document-root

server-root + hostname + document-root

然後每個virtual host 的設定用
$HTTP["host"] == “host”{
}
來區別
範例如下~~
$HTTP["host"] == “blog.abcd.tw”{
simple-vhost.server-root = “/usr/local/web/”
simple-vhost.default-host = “abcd”
simple-vhost.document-root = “/wordpress/”
alias.url = ( [...]

Posted in FreeBSD | Tagged | Leave a comment

postfix,courier-imap,cyrus-sasl2,mysql,pam-mysql-虛擬主機

Mail Server 安裝 先裝Mysql(這邊是裝mysql5) 裝mysql來做認証管理和帳戶管理 建postfix資料庫
create database postfix 然後建資料表 CREATE TABLE `admin` ( `username` varchar(255) NOT NULL default '', `password` varchar(255) NOT NULL default '', `domain` varchar(255) NOT NULL default '', `created` datetime NOT NULL default '0000-00-00 00:00:00', `modified` datetime NOT NULL default '0000-00-00 00:00:00', `active` tinyint(4) NOT NULL default '1', PRIMARY KEY [...]

Posted in FreeBSD | 3 Comments