文档介绍:QGIS MapServer基于IIS及Apache服务器
配置手册
1. IIS : 3
. 安装Fastcgi IIS扩展程序 3
. 配置IIS扩展映射 3
. 配置MAP FCGI程序 4
. 修改FCGI配置文件 4
. 测试程序 5
. 最简单的测试程序() 5
. 基于OpenLayers的测试程序 5
2. Apache服务器配置 5
IIS :
安装Fastcgi IIS扩展程序
安装文件:
安装完后应该在:C:\WINDOWS\system32\inetsrv 目录下找到
,,
配置IIS扩展映射
步骤详见下图:
配置MAP FCGI程序
修改程序()所在目录的执行权限为“脚本和可执行文件”:
修改FCGI配置文件
修改文件(C:\WINDOWS\system32\inetsrv\):
在文件中增加以下内容(参数值可根据需要修改):
[Types]
fcgi=FCGI
[FCGI]
ExePath=C:\Inetpub\\
;EnvironmentVars=FcgidMinProcessesPerClass:0,FcgidIdleScanInterval:1,FcgidProcessLifeTime:100
MaxInstances=8
RequestTimeout=360
测试程序
注意:
1、WMS Server端只处理UTF8编码请求,所在在客户端脚本中增加以下内容:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
2、,即纬度在前;
最简单的测试程序()
功能:完成一次WMS请求
代码中以下内容请根据不同机器及应用的情况进行修改:
action="/project/"
<input type="hidden" name="LAYERS" value="xxx行政区划">
<input type="hidden" name="BBOX" value=",,,">
基于OpenLayers的测试程序
请参见OpenLayers openlayers\examples\ wms-
功能:可进行地图浏览操作,平衡,放大,缩小
Apache服务器配置
基于Apache/
修改:D:\ms4w\Apache\conf\ ,详细修改请参见以下红色部分内容(修改后需重启Apache服务器)
[]
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd./docs/> for detailed information.
# In particular, see
# <URL:http://httpd./docs/>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the serve