配置微型 HTTP Web 服务器

过程

下列文件是 Windows 工作站的缺省 MiniHttpConfig.properties 文件。可以使用此缺省文件或修改它来满足您的应用程序和系统的需求。 还可对设备修改缺省 MiniHttpConfig.properties 文件。

# Mini HTTP Web server properties - Win32
 
# JspPath
# Specifies: the path that contains the JSP pages (.jsp and .class files). 
# Default: JspPath=<directory where the mini HTTP Web server is started>
#
# Note: use \\ to denote the directory separator 
# 
JspPath=sample\\jsp
 
# Port
#
# Specifies: port that the server listens on
# Default: Port=80
#
# Note: If you are not using the default Port, start URL requests with:
#  http://localhost:Port/
# (instead of http://localhost/) where Port is the specified Port.
 
# Mime
#
# Specifies: Mime types
# Default: Mime=text/html wml htm html,text/plain txt,image/gif gif,image/jpeg jpg 
# 
# Note: Additional Mime types can be added using the following format:
# Mime=mime_type_A ext1 ext2 ext3 ...,mime_type_B ext4 ext5 ...,... 
#
Mime=application/octet-stream exe class,image/jpeg jpeg jpg 
 
# LogFile
# 
# Specifies: log file for the server 
# Values:
# "" - log entries are written to the console
# "no" - no log entries are kept 
# "<log_file_name>" - log entries are written to <log_file_name>
# Default: LogFile=
#
LogFile=JspServer.log  
 
# Index
#
# Specifies: the index page (displayed if http://localhost is requested) 
# Values:  
# "" - the JspPath directory will be loaded
# "no" - no page will be loaded
# "<index_file>" - <index_file> will be loaded
# Default: Index=
 

相关任务

相关参考