QGIS MapServer 配置IIS 6及Apache
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
QGIS MapServer基于IIS及Apache服务器
配置手册
1. IIS 6.0配置步骤: (3)
1.1. 安装Fastcgi IIS扩展程序 (3)
1.2. 配置IIS扩展映射 (3)
1.3. 配置MAP FCGI程序 (4)
1.4. 修改FCGI配置文件 (5)
1.5. 测试程序 (5)
1.1.1. 最简单的测试程序(gisServerIIS.html) (5)
1.1.2. 基于OpenLayers的测试程序 (5)
2. Apache服务器配置 (6)
1.IIS 6.0配置步骤:
1.1.安装Fastcgi IIS扩展程序
安装文件:fcgisetup_1.5_rtw_x86.msi
安装完后应该在:C:\WINDOWS\system32\inetsrv 目录下找到fcgiext.dll,fcgiext.ini,fcgiconfig.js等文件
1.2.配置IIS扩展映射
步骤详见下图:
1.3.配置MAP FCGI程序
修改程序(qgis_mapserv.exe.fcgi)所在目录的执行权限为“脚本和可执行文件”:
1.4.修改FCGI配置文件
修改文件(C:\WINDOWS\system32\inetsrv\fcgiext.ini):
在文件中增加以下内容(参数值可根据需要修改):
[Types]
fcgi=FCGI
[FCGI]
ExePath=C:\Inetpub\wwwroot\project\qgis_mapserv.exe.fcgi
;EnvironmentVars=FcgidMinProcessesPerClass:0,FcgidIdleScanInterval:1,FcgidProcessLifeTime:10 0
MaxInstances=8
RequestTimeout=360
1.5.测试程序
注意:
1、WMS Server端只处理UTF8编码请求,所在在客户端脚本中增加以下内容:
2、WMS1.3的BBOX坐标为倒置,即纬度在前;
1.1.1.最简单的测试程序(gisServerIIS.html)
功能:完成一次WMS请求
代码中以下内容请根据不同机器及应用的情况进行修改:
action="/project/qgis_mapserv.exe.fcgi"
1.1.
2.基于OpenLayers的测试程序
请参见OpenLayers openlayers\examples\ wms-fjmiis.html
功能:可进行地图浏览操作,平衡,放大,缩小
2.Apache服务器配置
基于Apache/2.2.21版本
修改:D:\ms4w\Apache\conf\ httpd.conf文件,详细修改请参见以下红色部分内容(修改后需重启Apache服务器)
[httpd.conf范例]
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See
# In particular, see
#
# 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 server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "d:/ms4w/Apache" will be interpreted by the
# server as "d:/ms4w/Apache/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "d:/ms4w/Apache"