【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 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x