Lighttpd使用mod_auth模块可实现对域等进行用户名、密码保护的功能。这与Apache下用.htaccess实现的保护是类似的。
1.在modules.conf中加入
2.在auth.conf中加入
1.密码文件保存方式为plain普通文本文件
2.设置调试级别(0是关闭调试信息,1是认证成功信息,2是更详细的调试信息),信息被记录在 access.log和error.log日志文件中
3.密码文件保存路径
4.指定要进行认证目录,空引号代表所有目录
6.使用基本身份认证
7.用户认证界面提示信息
8.匹配密码文件中的用户
密码文件的添加方式:username:passward。一行一条记录
设置先用户验证后跳转到自定义页面,auth.require的路径必须大于.html的路径
官方文档: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs
《Lighttpd源码分析》epub下载在线阅读全文,求百度网盘云资源
1.编译、安装1.1.先到lighttpd官网下载对应版本的软件包:mon)得到文件夹lighttpd-1.4.301.3.在文件夹lighttpd-1.4.30中创建shell脚本,命名为:configure-arm.sh1.4.在shell脚本configure-arm.sh中输入如下代码:#!/bin/shCC=arm-linux-gccAR=arm-linux-arLD=arm-linux-ldRANLIB=arm-linux-ranlibSTRIP=arm-linux-strip./configure–prefix=/opt/web/lighttpd-1.4.30-arm–host=arm-linux–build=i686-pc-linux–disable-FEATURE–enable-shared–disable-static–disable-lfs–disable-ipv6–without-PACKAGE–without-valgrind–without-openssl–without-kerberos5–without-pcre–without-zlib–without-bzip2–without-lua1.5.打开控制台,cd进入lighttpd-1.4.30目录1.6.给configure-arm.sh文件添加可执行属性,执行命令:chmod+xconfigure-arm.sh1.7.配置lighttpd,执行命令:./configure-arm.sh1.8.编译lighttpd,执行命令:make1.9.安装lighttpd,执行命令:makeinstall
如何对lighttpd进行交叉编译安装并配置lighttpdweb服务器
《Lighttpd源码分析》(高群凯)电子书网盘下载免费在线阅读
链接:https://pan.baidu.com/s/150VnuhQR30KYGJvhDpjX7w
提取码:RFDP
书名:Lighttpd源码分析
作者:高群凯
出版社:机械工业出版社
出版年份:2010-3
页数:460
内容简介:
本书主要针对lighttpd源码进行了深度剖析。主要内容包括:lighttpd介绍与分析准备工作、lighttpd网络服务主模型、lighttpd数据结构、伸展树、日志系统、文件状态缓存器、配置信息加载、i/o多路复用技术模型、插件链、网络请求服务响应流程、请求响应数据快速传输方式,以及基本插件模块。本书针对的lighttpd项目版本为稳定版本1.4.20。
本书适合使用lighttpd的人员和爱好者参考。
1. 编译、安装

1.1. 先到lighttpd官网下载对应版本的软件包:
http://www.lighttpd.net/
我下载的是 lighttpd-1.4.30.tar.gz
1.2. 将压缩包解压到任意目录(我的是 /root/Desktop/common)得到文件夹 lighttpd-1.4.30
1.3. 在文件夹 lighttpd-1.4.30 中创建shell脚本,命名为:configure-arm.sh
1.4. 在shell脚本 configure-arm.sh 中输入如下代码:
#! /bin/sh
CC=arm-linux-gcc
AR=arm-linux-ar LD=arm-linux-ld RANLIB=arm-linux-ranlib
STRIP=arm-linux-strip ./configure –prefix=/opt/web/lighttpd-1.4.30-arm
–host=arm-linux –build=i686-pc-linux –disable-FEATURE –enable-shared
–disable-static –disable-lfs –disable-ipv6 –without-PACKAGE
–without-valgrind –without-openssl –without-kerberos5 –without-pcre
–without-zlib –without-bzip2 –without-lua
1.5. 打开控制台,cd进入 lighttpd-1.4.30 目录
1.6. 给 configure-arm.sh 文件添加可执行属性,执行命令:
chmod +x configure-arm.sh
1.7. 配置lighttpd,执行命令:
./configure-arm.sh
1.8. 编译lighttpd,执行命令:
make
1.9. 安装lighttpd,执行命令:
make install
以上就是关于Lighttpd配置用户认证全部的内容,如果了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!