专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > CGI

php+lighttpd应用异常,403-Forbidden

发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
php+lighttpd应用错误,403-Forbidden
使用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)
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: