|
楼主

楼主 |
发表于 2006-4-19 15:02:22
|
只看该作者
报错:Internal Server Error,请教怎么做?
在ie中输入http://localhost/index.htm
可以正常显示htm
<!-- m --><a class="postlink" href="http://localhost/cgi-bin/broker.exe?_service=eipc&_debug=0&_program=sys_prog.manager.login.scl">http://localhost/cgi-bin/broker.exe?_se ... .login.scl</a><!-- m -->
然后就报错
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@****.****.CORP and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/2.0.55 (Win32) Server at 192.168.20.199 Port 80
/*************************************************/
aparch中 Apache Group\Apache2\logs\error.log报错如下:
[Wed Apr 19 14:30:56 2006] [error] [client 192.168.20.199] Premature end of script headers: broker.exe, referer: <!-- m --><a class="postlink" href="http://**.1**.**.***/index.htm">http://**.1**.**.***/index.htm</a><!-- m -->
我的broker.cfg如下
/*************************************/
/*************************************/
##---------------------------------------------------------------------
## Copyright (c) 1996-2000 by SAS Institute Inc., Cary NC
##
## NAME: broker.cfg (template)
## PRODUCT: INTRNET
## SCRIPT: INTRNET
## MACHINE: Portable
## PURPOSE: This is the Broker configuration file. It defines services
## and other options needed by the Broker. It must be modified
## for each site.
##
## HISTORY: who date action
##
## NOTES: Comments start with # as first non-blank character.
## Leading spaces are ignored.
## The plus sign (+) at the end of a non-comment line is used for
## line continuation.
## Single or double quotes are required for any values
## containing blanks including filenames, descriptions,
## or userids. If you need to include a quote you use
## \" or \', and use \\ to get one \.
##
## For more information see: <!-- m --><a class="postlink" href="http://www.sas.com/rnd/web/dispatch/">http://www.sas.com/rnd/web/dispatch/</a><!-- m --> .
## END
##---------------------------------------------------------------------
##---------------------------------------------------------------------
## Global options
##---------------------------------------------------------------------
## The language used for error messages. Specifies the 2-letter language
## code for messages. Currently only EN and FR are valid. Defaults to English.
#Language EN
# The password to control access to the administration page (_debug=4)
# for the Broker.
#BrokerPassword password
# The self-referencing URL for the CGI program. This is passed to the
# SAS program in a field called "_URL". The default is set by the Web
# server and should be left alone except in special cases. Uncomment
# this line and modify the value to change the default.
#SelfURL "http://www.yourcomp.com/cgi-bin/broker"
# Global administrator
# Used in error messages before a service has been established or when
# the service administrator is omitted.
# May be overridden on a per-service basis with the ServiceAdmin and
# ServiceAdminMail directives.
# ***> Modify this for your site <****
Administrator "Your Name"
AdministratorMail "yourname@yoursite"
# HTTP methods supported by the Broker CGI program
# Valid values are: get and post. The default is to allow both which
# is fine except in special cases. Modify the value to change the default.
Allow get post
# The value for _DEBUG used if the HTML page doesn't specify one
# See the online documentation for valid values. The default is 2, which
# turns on a status message at the end of each page. This should
# be fine for most sites. The value should be the sum of all the debug
# flags you want to turn on. Uncomment this line and modify the value
# to change the default.
# May be overridden on a per-service basis with the ServiceDebug directive.
#Debug 2
# The _DEBUG bits users are allowed to set
# The default is to allow all bits (32767), which is fine for most sites.
# Some debug flags may represent a security risk so they can be selectively
# disabled here. The value should be the sum of all the debug flags you
# want to allow. Does not apply to the Debug directive above.
# May be overridden on a per-service basis with the ServiceDebugMask directive.
#DebugMask 32767
# The default field width for all services
# The default is 80. Any fields not starting with an underscore are
# split up into multiple fields shorter than the field width.
# May be overridden on a per-service basis with ServiceFieldWidth.
#FieldWidth 200
# URL of the SAS Powered Logo image file
# If specified, the Dispatcher status line will contain the logo and
# a link back to the Institute's home page.
# May be overridden on a per-service basis with ServiceSASPoweredLogo.
#SASPoweredLogo "/sasweb/IntrNet8/images/saslanim.gif"
# The alternate text used for the SAS Powered Logo image. This text
# appears before the image has loaded, if images are disabled or not
# supported, or, in some browsers, when the mouse is held motionless
# over the image. The default is "SAS Institute Inc.".
# May be overridden on a per-service basis with ServiceSASPoweredAlt.
#SASPoweredAlt "SAS Institute Inc."
# The destination URL, i.e., where you go when you click the image.
# The default is "http://www.sas.com".
# May be overridden on a per-service basis with ServiceSASPoweredHref.
#SASPoweredHref "http://www.sas.com"
# The frame used for the hypertext link on the SAS Powered Logo. The
# default is not to specify a target. Any browser-supported targets
# may be used, including any named window or frame, "_top" (replace
# the entire current browser window), "_blank" (open a new window),
# "_parent" (replace the parent of the current frame), or "_self"
# (replace the current window or frame). May be overridden on a
# per-service basis with ServiceSASPoweredTarget.
#SASPoweredTarget "wwwsascom"
# File insertion directives:
# A file to insert at the beginning of every HTML page generated by your
# application, or requests that generate errors in the Application Server.
# Note this is a host path name, not a URL. This should be used with
# care to prevent malformed HTML, for example if you put an HTML and BODY
# tag in the prepend file, and also output them from your application,
# that's incorrect HTML. However major browsers are forgiving about this.
# May be overridden on a per-service basis with ServicePrependFile.
#PrependFile "/usr/local/lib/IntrNet/broker/header.html"
# A file to add to the bottom of every HTML page generated by your
# application, or requests that generate errors in the Application
# Server. Note this is a host path name, not a URL. Technically speaking, if
# you use this feature then your applications should not output the
# </BODY> and </HTML> tags, but major browsers will forgive this.
# May be overridden on a per-service basis with ServiceAppendFile.
#AppendFile "/usr/local/lib/IntrNet/broker/footer.html"
# Default service to use when no service name is supplied.
#DefaultService default
# Location of Load Manager
# If specified, indicates the machine and port where the Load Manager is
# running. The Load Manager is an optional process used for load
# balancing Socket Services and starting Pool Servers. May be overridden
# on a per-service basis with ServiceLoadManager.
#LoadManager loadmgr.yourcomp.com:5555
# Local IP address for Broker.
# If specified, this overrides the automatic determination of the local host
# IP address. This parameter should only be used in special cases where
# the App Server cannot connect back to the Broker host.
#LocalAddress 111.222.333.444
# Specify any environment variables you want to surface to
# all services. There is no default. The syntax is:
# Export <environment variable> <optional sas variable>
# If the SAS variable is omitted, the environment variable name
# is used (must be 8 chars or less). Variables that have names
# starting with an underscore are not split up according to
# the field width; they will just be truncated at the maximum
# character string limit allowed by SAS.
#
# Note: The names below are just suggestions. The variables are
# commonly sent by Web servers to CGI programs; consult any CGI
# reference for a more complete description. Most of them will not be
# useful to your applications.
#
# You can use any names you like. Uncomment the lines for variables
# you want to pass to all applications or add new lines for additional
# variables contained in your server environment.
#
# This list may be appended to on a per-service basis using the
# ServiceExport directive.
# CGI version
# Export GATEWAY_INTERFACE _GATEWAY
# Web server hostname
Export SERVER_NAME _SRVNAME
# Web server name/version
# Export SERVER_SOFTWARE _SRVSOFT
# HTTP version
# Export SERVER_PROTOCOL _SRVPROT
# Web server port number
Export SERVER_PORT _SRVPORT
# GET, POST, etc.
Export REQUEST_METHOD _REQMETH
# Extra path info after script
# Export PATH_INFO _PATHINF
# Local filename of PATH_INFO
# Export PATH_TRANSLATED _PATHTRN
# Dup of _URL
# Export SCRIPT_NAME _SCRIPT
# Directory from which Web documents are served [unreliable]
# Export DOCUMENT_ROOT _DOCROOT
# Query string for GET requests [duplicate of user macro parms]
Export QUERY_STRING _QRYSTR
# User's DNS name if known
Export REMOTE_HOST _RMTHOST
# User's IP address
Export REMOTE_ADDR _RMTADDR
# Usually Basic
# Export AUTH_TYPE _AUTHTYP
# Username if authenticated
Export REMOTE_USER _RMTUSER
# RFC931 id if supported
# Export REMOTE_IDENT _RMTID
# HTTP POST type
# Export CONTENT_TYPE _CONTTYP
# HTTP POST length
# Export CONTENT_LENGTH _CONTLEN
# Email address of user making request [unreliable]
# Export HTTP_FROM _HTFROM
# MIME types UA likes [unreliable]
# Export HTTP_ACCEPT _HTACPT
# Cookies
Export HTTP_COOKIE _HTCOOK
# Browser name
Export HTTP_USER_AGENT _HTUA
# Referring page if known
# Export HTTP_REFERER _HTREFER
# Variables used by SAS/IntrNet samples and applications
Set _mrvimg "/sasweb/IntrNet8/MRV/images"
Set _grfaplt "/sasweb/graph/graphapp.jar"
Set _grafloc "/sasweb/graph"
# Specify any other variables and values you want to set for all
# services. These must also follow the SAS variable naming conventions.
# Variables starting with an underscore are not split up according to the
# field width; they will just be truncated at the maximum
# character string limit allowed by SAS.
# This list may be appended to on a per-service basis using the
# ServiceSet directive.
#Set VARNAME "Value"
##---------------------------------------------------------------------
## Definitions for full-time ("socket") servers
##---------------------------------------------------------------------
# Supplied Directive Description
# ------------------ -----------
#
# SocketService Starts a service definition. Parameters are the
# service name and short description. The name
# given here is the value specified in
# the "_service" hidden field submitted to the
# broker.
# ServiceDescription Longer description used when building a list
# of services. [optional, no default]
# ServiceAdmin Specifies the name of the service administrator.
# If omitted the global Administrator is used.
# ServiceAdminMail Specifies the email address of the administrator of
# this service.
# If omitted the global Administrator is used.
# Server DNS name or IP address of application server host
# Port TCP port number (256-65535)
# ServiceCompatibility Used to specify compatibility with Version 6 and 7
# Application Servers. Set to 1.0 for non-V8.
# FullDuplex Communicate with a V8.1 or later App Server over
# one bidirectional socket
#
# Consult the Application Dispatcher documentation for a complete list of
# directives. We recommend each site define a default service. There is
# nothin special about the name 'default', it is simply a convention you can
# use at your site.
SocketService eipc "Reuse existing session"
ServiceDescription "Pages reference this generic server when they +
don't care which service is used."
ServiceAdmin "Your Name"
ServiceAdminMail "yourname@yoursite"
Server localhost
Port 5051
ServiceTimeout 1800
# Remove the following line for any servers before V8.1
# FullDuplex True
##---------------------------------------------------------------------
## Definitions for temporary ("launch") servers
##---------------------------------------------------------------------
# Supplied Directive Description
# ------------------ -----------
#
# LaunchService Starts a service definition. Parameters are the
# service name and short description. The name given
# here is the value specified in the "_service" hidden
# field submitted to the broker.
# ServiceDescription Longer description used when building a list
# of services. [optional, no default]
# ServiceAdmin Specifies the name of the administrator of this
# service. If omitted the global Administrator is used.
# ServiceAdminMail Specifies the email address of the administrator of
# this service. If omitted the global Administrator is
# used.
# SasCommand Full SAS Version 8 command. For Unix systems this
# cannot be a relative path or shell alias because SAS
# will be invoked without a shell. For Windows systems,
# include the .exe extension on the SAS executable and
# specify pathnames using the double back slashes.
# Include -SYSPARM parameter with command.
#
# Deprecated Version 6 and 7 parameters:
#
# SasBin Full path to SAS command. For Unix systems this
# cannot be a relative path or shell alias because SAS
# will be invoked without a shell. For Windows systems,
# include the .exe extension on the SAS executable and
# specify pathnames using the double back slashes.
# SasOpts SAS command line options. If you are invoking V6 SAS
# this line must contain -dmsbatch. If you are invoking
# V7 SAS this line must contain -noterminal and -sysin
# with a path to an empty .sas file.
# TmpDir Read/write directory in which to create temporary
# files. All temporary files, including the SASUSER
# and WORK libraries are created in TmpDir. This
# information passes to the application as _TMPDIR.
# Note: must end with a slash.
# InitCmd SAS Version 6 AF command to invoke the Application
# Server.
# InitStmt SAS Version 7 dm statement to invoke the Application
# Server.
# Use InitCmd or InitStmt, not both.
# ServiceCompatibility Used to specify compatibility with Version 6 and 7
# Application Servers. Set to 1.0 for non-V8.
#
#
# For best results, surround with double quotes and use only single quotes
# inside. Consult the Application Dispatcher documentation for a complete list
# of directives.
#---------------------------------------------------------------------------
#LaunchService newsas_v8 "New SAS Version 8 session each time"
# ServiceDescription "Pages should use this service to start a new +
#temporary SAS session on the Web server."
# ServiceAdmin "Your Name"
# ServiceAdminMail "yourname@yoursite"
# SasCommand "\"C:\\Program Files\\SAS Institute\\sas\\V8\\sas.exe\" +
#\"C:\\winnt\\Profiles\\username\\Personal\\My SAS Files\\V8\\IntrNet\\newsas_v8\\appstart.sas\" +
#-rsasuser -noterminal -noprint -nolog -SYSPARM "
#LaunchService newsas_v7 "New SAS Version 7 session each time"
# ServiceDescription "Pages should use this service to start a new +
#temporary SAS session on the Web server."
# ServiceAdmin "Your Name"
# ServiceAdminMail "yourname@yoursite"
# SasBin "\"C:\\Program Files\\SAS7\\sas\""
# SasOpts "-sysin \"C:\\winnt\\Profiles\\username\\Personal\\My SAS Files\\IntrNet\\newsas_v7\\appstart.sas\" -noterminal"
# InitStmt "dm '%appsrv(srvroot=C:\\winnt\\Profiles\\username\\Personal\\My SAS Files\\IntrNet\\newsas_v7)';"
# TmpDir C:\\TEMP\\
# ServiceCompatibility 1.0
#LaunchService newsas_v6 "New SAS Version 6 session each time"
# ServiceDescription "Pages should use this service to start a new +
#temporary SAS session on the Web server."
# ServiceAdmin "Your Name"
# ServiceAdminMail "yourname@yoursite"
# SasBin "C:\\SAS"
# SasOpts "-dmsbatch -fsdevice ascii.vt100 -config C:\\SAS\\config.sas"
# InitCmd "af c=sashelp.web.appstart.scl logwind srvroot='C:\\IntrNet\\newsas_v6'"
# TmpDir C:\\TEMP\\
# ServiceCompatibility 1.0
##---------------------------------------------------------------------
## Definitions for pool servers
##---------------------------------------------------------------------
# Supplied Directive Description
# ------------------ -----------
#
# PoolService Starts a service definition. Parameters are the
# service id and optional name. The id is specified in
# the "_service" hidden field submitted to the
# broker.
# ServiceDescription Longer description used when building a list
# of services. [optional, no default]
# SasCommand Exact command used to start SAS. Need to add a
# SYSPARM parameter for the SAS host.
# Server DNS name or IP address of application server host
# Port TCP port number to use. If the number is less than 256,
# it specifies the maximum number of servers in pool
# that will be started for each server host.
# IdleTimeout Optional pool server idle timeout (minutes). The
# default is 60 minutes with 0 indicating immediate
# shutdown after processing the job.
# StartAhead Optional parameter to indicate how many SAS servers
# to start ahead of time when all current servers are
# busy. The default is 0.
# MinRun Optional minimum number of servers to keep running.
# SpawnerPort Optional parameter specifying the SAS Spawner port or
# /etc/services name.
# Username Optional username used to start server. If _USERNAME
# is specified, the username will be taken from the
# client _USERNAME field. A username starting with a
# ! character is assumed to be encrypted.
# Password Optional password used to start server. If _PASSWORD
# is specified, the password will be taken from the
# client _PASSWORD field. A password starting with a
# ! character is assumed to be encrypted.
# FullDuplex Communicate with a V8.1 or later App Server over
# one bidirectional socket
#---------------------------------------------------------------------------
## Start up to 2 servers on the same node as the Load Manager. No username/
## password or spawner is needed for this case. Servers will time out after
## 30 minutes.
#PoolService pool_1
# ServiceDescription "Pool of SAS servers"
# ServiceAdmin "Your Name"
# ServiceAdminMail "yourname@yoursite"
# ServiceLoadManager myserv.xxx.com:5555
# SasCommand "\"C:\\Program Files\\SAS Institute\\sas\\V8\\sas.exe\" +
#\"C:\\winnt\\Profiles\\username\\Personal\\My SAS Files\\V8\\IntrNet\\pool_1\\appstart.sas\" +
#-rsasuser -noterminal -noprint -nolog -SYSPARM "
# IdleTimeout 30
# Server myserv.xxx.com
# Port 2
## Remove the following line for any servers before V8.1
# FullDuplex True
## Start up to 5 servers on node yourserv.yyy.com using the spawner started
## at port 7777. All servers will be started with the specified username/
## password. At least 1 server will not timeout and be kept running.
#PoolService pool_2
# ServiceDescription "Pool of SAS servers"
# ServiceAdmin "Your Name"
# ServiceAdminMail "yourname@yoursite"
# ServiceLoadManager myserv.xxx.com:5555
# SasCommand "\"C:\\Program Files\\SAS Institute\\sas\\V8\\sas.exe\" +
#\"C:\\winnt\\Profiles\\username\\Personal\\My SAS Files\\V8\\IntrNet\\pool_2\\appstart.sas\" +
#-rsasuser -noterminal -noprint -nolog -SYSPARM "
# Server yourserv.yyy.com
# Port 6000-6004
# Username appdemo
# Password xyzzy
# SpawnerPort 7777
# MinRun 1
## Remove the following line for any servers before V8.1
# FullDuplex True
## Allow up to 20 servers on nodes yourserv.yyy.com and otherserv.zzz.com
## using the spawner started at port 7777 on each machine. All servers will
## be started with a client supplied username/password. Servers will go
## away after each client's job has completed.
#PoolService pool_3
# ServiceDescription "Pool of SAS servers"
# ServiceAdmin "Your Name"
# ServiceAdminMail "yourname@yoursite"
# ServiceLoadManager myserv.xxx.com:5555
# SasCommand "\"C:\\Program Files\\SAS Institute\\sas\\V8\\sas.exe\" +
#\"C:\\winnt\\Profiles\\username\\Personal\\My SAS Files\\V8\\IntrNet\\pool_3\\appstart.sas\" +
#-rsasuser -noterminal -noprint -nolog -SYSPARM "
# Server yourserv.yyy.com otherserv.zzz.com
# Port 20
# Username _USERNAME
# Password _PASSWORD
# SpawnerPort 7777
# IdleTimeout 0
## Remove the following line for any servers before V8.1
# FullDuplex True
请问各位高手,到底是什么错误?小妹这里等待赐教了,谢谢谢谢谢谢!!!!! |
|