【Lighttpd】LighttpdでVhostを作成

LighttpdもApacheと同じようにバーチャルホストが作成できます。

■設定方法
vim /etc/lighttpd/conf.d/example.conf

$HTTP["host"] == "www.example.com" {
var.servername               = "www.example.com"
accesslog.filename          = "/var/log/lighttpd/" + var.servername + "_access.log"
server.errorlog             = "/var/log/lighttpd/" + var.servername + "_error.log"
server.document-root      = "/home/vhosts/example.com/www/htdocs/"
index-file.names          =  ( "index.php,index.html,index.cgi" )
cgi.assign                = ( ".cgi" => "" )
}
0 0
Article Rating
申し込む
注目する
guest

0 Comments
インラインフィードバック
すべてのコメントを見る
0
あなたの考えが大好きです、コメントしてください。x