文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>lighttpd 虚拟主机、(别名)虚拟目录配置

lighttpd 虚拟主机、(别名)虚拟目录配置

时间:2009-06-19  来源:ganfic

lighttpd 虚拟主机配置
编辑 /etc/lightpd/lighttpd.conf 文件,添加:
$HTTP["host"] == “www.***.com” {
server.name = “www.***.com”
server.document-root = “/data/www/123”
server.errorlog = “/data/logs/123/error.log”
accesslog.filename = “/data/logs/123/error2.log”
}
保存。重启 lightpd 即可。
lighttpd(别名)虚拟目录配置
server.modules += ( “mod_alias” )
alias.url = ( “/cgi-bin/” => “/home/lighttpd/theos.in/cgi-bin/” )
Browse all documents installed at /usr/share/doc/ directory with following alias:
alias.url = ( “/docs/” => “/usr/share/doc/” )
alias.url += ( “/stats/” => “/home/theos.in/http/webalizer/” )

拒绝下载 ~ 和 .inc 文件。
url.access-deny = ( “~”, “.inc” )

wikipedia 虚拟主机以后需要修改 LocalSettings.php 的目录。否则报告 404 错误。
排行榜 更多 +
空中跑酷汉化版

空中跑酷汉化版

赛车竞速 下载
修仙传说

修仙传说

角色扮演 下载
魔界零之迷宫

魔界零之迷宫

冒险解谜 下载