QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1148|回复: 1

linux源代码阅读工具lxr配置出错

[复制链接]
发表于 2005-1-30 19:41:32 | 显示全部楼层 |阅读模式
用http://127.0.0.1/lxr/http/source/浏览出错
Internal Servel Error
.....
....
..

我的lxr是比较新的版本,按照INSTALL文件安装到/usr/soft/lxr目录下
以下是我的配置文件lxr.conf,httpd.conf
# Configuration file.

# Define typed variable "v", read valueset from file.
variable: v, Version, [/local/lxr/source/versions],      
[/local/lxr/source/defversion]                                 ******我基本上没有用这个$v

# Define typed variable "a".  First value is default.
variable: a, Architecture, (i386, alpha, m68k, mips, ppc, sparc, sparc64)

# Define the base url for the LXR files.
baseurl: http://127.0.0.1/lxr/http  

# These are the templates for the HTML heading, directory listing and
# footer, respectively.
htmlhead: /usr/soft/lxr/http/template-head
htmltail: /usr/soft/lxr/http/template-tail
htmldir:  /usr/soft/lxr/http/template-dir

# The source is here.
sourceroot: /usr/src/linux-2.6.10/
srcrootname: Linux

# "#include <foo.h>" is mapped to this directory (in the LXR source
# tree)
incprefix: /usr/include

# The database files go here.
dbdir: /usr/soft/lxr/db/

# Glimpse can be found here.
glimpsebin: /usr/local/bin/glimpse

# The power of regexps.  This is pretty Linux-specific, but quite
# useful.  Tinker with it and see what it does.  (How's that for
# documentation?)
map: /include/asm[^\/]*/ /include/asm-$a/
map: /arch/[^\/]+/ /arch/$a/



*****部分httpd.conf中的内容*****
DocumentRoot "/usr/soft"     *****为方便,我直接将lxr的安装目录设置为web文档的目录,在其中放入了一个index文件,测试通过
<Directory "/usr/soft">  ****必须作相应更改******

<Directory "/usr/soft/lxr/http">
Options All
AllowOverride All                                 *设置访问权限*
Allow from all
</Directory>



我也在/usr/soft/lxr/http中,加入了.htaccess文件
<Files ~ (search|source|ident|diff)$>
SetHandler cgi-script
</Files>



我觉得好像是apache配置的问题,我用的是fedora3,自带的apache是最新版本。
请同志们帮忙看看
发表于 2005-2-22 11:41:41 | 显示全部楼层
看http://www.cnblogs.com/huqingyu/archive/2005/02/19/106080.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 10:17 , Processed in 0.064466 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表