欢迎来到天天文库
浏览记录
ID:12139778
大小:354.28 KB
页数:18页
时间:2018-07-15
《qgis mapserver 配置iis 6及apache》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、QGISMapServer基于IIS及Apache服务器配置手册第18页1.IIS6.0配置步骤:31.1.安装FastcgiIIS扩展程序31.2.配置IIS扩展映射31.3.配置MAPFCGI程序41.4.修改FCGI配置文件41.5.测试程序51.1.1.最简单的测试程序(gisServerIIS.html)51.1.2.基于OpenLayers的测试程序52.Apache服务器配置5第18页1.IIS6.0配置步骤:1.1.安装FastcgiIIS扩展程序安装文件:fcgisetup_1.5_rtw
2、_x86.msi安装完后应该在:C:WINDOWSsystem32inetsrv目录下找到fcgiext.dll,fcgiext.ini,fcgiconfig.js等文件1.2.配置IIS扩展映射步骤详见下图:第18页1.1.配置MAPFCGI程序修改程序(qgis_mapserv.exe.fcgi)所在目录的执行权限为“脚本和可执行文件”:1.2.修改FCGI配置文件修改文件(C:WINDOWSsystem32inetsrvfcgiext.ini):在文件中增加以下内容(参数值可根据需要修改
3、):[Types]fcgi=FCGI[FCGI]ExePath=C:Inetpubwwwrootprojectqgis_mapserv.exe.fcgi;EnvironmentVars=FcgidMinProcessesPerClass:0,FcgidIdleScanInterval:1,FcgidProcessLifeTime:100MaxInstances=8第18页RequestTimeout=3601.1.测试程序注意:1、WMSServer端只处理UTF8编码请求,所在在客户端脚本中增加以
4、下内容:2、WMS1.3的BBOX坐标为倒置,即纬度在前;1.1.1.最简单的测试程序(gisServerIIS.html)功能:完成一次WMS请求代码中以下内容请根据不同机器及应用的情况进行修改:action="/project/qgis_mapserv.exe.fcgi"5、ttype="hidden"name="BBOX"value="29.494642,87.140300,54.824900,136.763000">1.1.2.基于OpenLayers的测试程序请参见OpenLayersopenlayersexampleswms-fjmiis.html功能:可进行地图浏览操作,平衡,放大,缩小1.Apache服务器配置基于Apache/2.2.21版本修改:D:ms4wApacheconfhttpd.conf文件,详细修改请参见以下红色部分内容(修改后需重启Ap6、ache服务器)[httpd.conf范例]##ThisisthemainApacheHTTPserverconfigurationfile.Itcontainsthe#configurationdirectivesthatgivetheserveritsinstructions.#Seefordetailedinformation.#Inparticular,see第18页#7、/docs/2.2/mod/directives.html>#foradiscussionofeachconfigurationdirective.##DoNOTsimplyreadtheinstructionsinherewithoutunderstanding#whattheydo.They'rehereonlyashintsorreminders.Ifyouareunsure#consulttheonlinedocs.Youhavebeenwarned.##Configurationandlogfil8、enames:Ifthefilenamesyouspecifyformany#oftheserver'scontrolfilesbeginwith"/"(or"drive:/"forWin32),the#serverwillusethatexplicitpath.Ifthefilenamesdo*not*begin#with"/",thevalueofServerRootisprepended--so"logs/
5、ttype="hidden"name="BBOX"value="29.494642,87.140300,54.824900,136.763000">1.1.2.基于OpenLayers的测试程序请参见OpenLayersopenlayersexampleswms-fjmiis.html功能:可进行地图浏览操作,平衡,放大,缩小1.Apache服务器配置基于Apache/2.2.21版本修改:D:ms4wApacheconfhttpd.conf文件,详细修改请参见以下红色部分内容(修改后需重启Ap
6、ache服务器)[httpd.conf范例]##ThisisthemainApacheHTTPserverconfigurationfile.Itcontainsthe#configurationdirectivesthatgivetheserveritsinstructions.#Seefordetailedinformation.#Inparticular,see第18页#7、/docs/2.2/mod/directives.html>#foradiscussionofeachconfigurationdirective.##DoNOTsimplyreadtheinstructionsinherewithoutunderstanding#whattheydo.They'rehereonlyashintsorreminders.Ifyouareunsure#consulttheonlinedocs.Youhavebeenwarned.##Configurationandlogfil8、enames:Ifthefilenamesyouspecifyformany#oftheserver'scontrolfilesbeginwith"/"(or"drive:/"forWin32),the#serverwillusethatexplicitpath.Ifthefilenamesdo*not*begin#with"/",thevalueofServerRootisprepended--so"logs/
7、/docs/2.2/mod/directives.html>#foradiscussionofeachconfigurationdirective.##DoNOTsimplyreadtheinstructionsinherewithoutunderstanding#whattheydo.They'rehereonlyashintsorreminders.Ifyouareunsure#consulttheonlinedocs.Youhavebeenwarned.##Configurationandlogfil
8、enames:Ifthefilenamesyouspecifyformany#oftheserver'scontrolfilesbeginwith"/"(or"drive:/"forWin32),the#serverwillusethatexplicitpath.Ifthefilenamesdo*not*begin#with"/",thevalueofServerRootisprepended--so"logs/
此文档下载收益归作者所有