免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1575 | 回复: 4
打印 上一主题 下一主题

[SCO UNIX] sos(5.0.7httpd.conf文件的修改)=在线 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-29 09:36 |只看该作者 |倒序浏览
我们是用图书馆ilasII管理软件,它是用5。0。7做为平台,我在设置web检索时,要在usr/lib/apache/conf的httpd.conf中设置一下,原设置文件如下(修改的地方用红字标注):http://www.ilas.com.cn/cgi-bin/t ... opic=277&show=0
其中有一条原为<Directory "/u/ilasII_GB/webpac/html">
但我改为       DirectoryIndex index.html
因为5。0。5是设置成DirectoryIndex index.html,而5。0。7前一条要改为<Directory "/u/ilasII_GB/webpac/html">时,但改成<Directory "/u/ilasII_GB/webpac/html">检索网页都出不来,改成DirectoryIndex index.html检索网页能出来,但现在有一个问题,我改成DirectoryIndex index.html后,在网页检索cgi-bin不能够提取数据库里面的数据,那在httpd.conf中有些文件要做些相应的修改吧,怎么改能否告知!小弟等的很急很急,有哪位高手能帮帮忙吗?

论坛徽章:
0
2 [报告]
发表于 2006-04-29 09:40 |只看该作者

还有一点:

在5。0。5时是在/var/scohttp/conf的srm.conf中修改,而5。0。7是在/usr/lib/apache/conf中的httpd.conf修改

论坛徽章:
0
3 [报告]
发表于 2006-04-29 09:52 |只看该作者

5.0.5srm是这样的

# -------------------------------------------------------------------------
# Copyright (c) 1994                    The Santa Cruz Operation, Inc.
# -------------------------------------------------------------------------
# All rights reserved.  No part of this  program or publication may be
# reproduced, transmitted, transcribed, stored  in a retrieval system,
# or translated into any language or computer language, in any form or
# by any  means,  electronic, mechanical, magnetic, optical, chemical,
# biological, or otherwise, without the  prior written  permission of:
#
#          The Santa Cruz Operation, Inc.  (40 425-7222
#          400 Encinal St, Santa Cruz, CA  95060 USA
# -------------------------------------------------------------------------
#
# SCCS  : @(#) srm.conf 12.2 95/12/07
#
# Modification History:
# S002, 14-Jul-95, faithz
#        added LocalizedDocRoot's and LanguageAlias'
# M001, 27-Jul-94, jonb
#        /usr/local/etc/scohttpd to /var/scohttp
# M000, 20-Jun-94, jonb
#        1.3 merge happened       
#
# NCSA Copyright:
#
# Portions developed at the National Center for Supercomputing
# Applications at the University of Illinois at Urbana-Champaign.
#
# THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED,
# FOR THE SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT
# LIMITATION, WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A
# PARTICULAR PURPOSE.
# -------------------------------------------------------------------------

# With this document, you define the name space that users see of your http
# server.


# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.

#DocumentRoot
DocumentRoot  /u/webpac
# LocalizedDocRoot:  The language specific directory out of which
# documents are served (as requested via Accept-Language).  If no
# language specific location is specfied the server defaults to
# looking in DocumentRoot.
# Example:  LocalizedDocRoot  english_us.ascii   /usr/lib/scohelp/english

LocalizedDocRoot  fr_FR.ISO8859-1    /usr/lib/scohelp/fr_FR.ISO8859-1
LocalizedDocRoot  de_DE.ISO8859-1    /usr/lib/scohelp/de_DE.ISO8859-1

# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.

UserDir DISABLED

# DirectoryIndex: Name of the file to use as a pre-written HTML
# directory index

DirectoryIndex index.html
# FancyIndexing is whether you want fancy directory indexing or standard

FancyIndexing on

# AddIcon tells the server which icon to show for different files or filename
# extensions

AddIconByType (TXT,/icons/text.xbm) text/*
AddIconByType (IMG,/icons/image.xbm) image/*
AddIconByType (SND,/icons/sound.xbm) audio/*
AddIcon /icons/movie.xbm .mpg .qt
AddIcon /icons/binary.xbm .bin

AddIcon /icons/back.xbm ..
AddIcon /icons/menu.xbm ^^DIRECTORY^^
AddIcon /icons/blank.xbm ^^BLANKICON^^

# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.

DefaultIcon /icons/unknown.xbm

# AddDescription allows you to place a short description after a file in
# server-generated indexes.
# Format: AddDescription "description" filename

# ReadmeName is the name of the README file the server will look for by
# default. Format: ReadmeName name
#
# The server will first look for name.html, include it if found, and it will
# then look for name and include it as plaintext if found.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.

ReadmeName README
HeaderName HEADER

# IndexIgnore is a set of filenames which directory indexing should ignore
# Format: IndexIgnore name1 name2...

IndexIgnore */.??* *~ *# */HEADER* */README*

# AccessFileName: The name of the file to look for in each directory
# for access control information.

AccessFileName .htaccess

# DefaultType is the default MIME type for documents which the server
# cannot find the type of from filename extensions.

DefaultType text/plain

# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
# Format: AddType type/subtype ext1

# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.

AddEncoding x-compress Z
AddEncoding x-gzip gz

# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Format: Redirect fakename url

# LanguageAlias allows you to map locale strings (to provide multiple
# ways to refer to the same locale).  
# Format:  LanguageAlias fake-locale  real-locale
# Example: LanguageAlias english      english_us.ascii

LanguageAlias  french_france.8859     fr_FR.ISO8859-1   
LanguageAlias  german_germany.8859    de_DE.ISO8859-1   

# Aliases: Add here as many aliases as you need, up to 20. The format is
# Alias fakename realname

Alias /images/ /u/webpac/images/

Alias /IlasMedia/ /u/ilasII_GB/IlasMedia/
Alias  /icons/ /u/webpac/icons/
# ScriptAlias: This controls which directories contain server scripts.
# Format: ScriptAlias fakename realname

ScriptAlias /cgi-bin/ /u/webpac/cgi-bin/
#ScriptAlias  /cgi-bin/ /u/WEB/cgi-bin/
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.

#AddType text/x-server-parsed-html .shtml
#AddType application/x-httpd-cgi .cgi

论坛徽章:
0
4 [报告]
发表于 2006-04-30 11:10 |只看该作者

怎么没人回答呢?

怎么没人回答呢?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2006-05-01 17:47 |只看该作者
你的数据库是什么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP