|
用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是最新版本。
请同志们帮忙看看 |
|