使用lighttpd和php。其中Lighttpd 1.4.23 ./configure --prefix=/usr/local --with-openssl --with-webdav-props
Php 5.3.0 ./configure --without-mysql --without-pear --with-openssl --without-sqlite --with-pcre-regex=yes
--with-gettext --enable-libxml --with-libxml-dir=/usr --prefix=/usr/local
编译,配置。
lighttpd.conf
server.modules = (
"mod_access",
"mod_accesslog" )
server.document-root = "/var/www/htdocs/"
server.errorlog = "/var/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
......
".tar.bz2" => "application/x-bzip-compressed-tar",
"" => "application/octet-stream",
)
accesslog.filename = "/var/log/lighttpd/access.log"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
在地址栏输入http://192.168.X.X/index.html可以正常显示页面,
输入http://192.168.X.X/index.php显示403 -Forbidden错误页面
请问:为什么?怎么修改?
------解决方案--------------------
你做什么用的?推荐html+JavaScript+xml+cgi(c,shell)