使用和配置lightpd的alias模块,下面是一个配置过程:
增加alias模块:
server.modules += ( "mod_alias" )
|
使/home/lighttpd/theos.in/cgi-bin/目录用/cgi-bin/这网址来呈现,如就等于/home/lighttpd/theos.in/cgi-bin/。
alias.url = ( "/cgi-bin/" => "/home/lighttpd/theos.in/cgi-bin/" )
|
跟上面一样!
alias.url = ( "/docs/" => "/usr/share/doc/" )
alias.url += ( "/stats/" => "/home/theos.in/http/webalizer/" )
|
阅读(1377) | 评论(0) | 转发(0) |