[MS4W-Users] Hosting Map Cache in IIS
Georgios (Smartsoft)
georgios at smartsoft.com.au
Thu May 9 19:21:17 EDT 2019
Hi
Some background. We have a website hosted in IIS. We installed Map Server For Windows using Apache on another port number (:80 was taken by IIS). However, when we tried to do anything with the canvas image such as save to a PNG, or print in a PDF, it would give an error in the JavaScript console "tainted canvases may not be exported". We managed to solve this for Map Server by following the instructions for IIS and FastCGI, hosting Map Server as an application sub directory, which works perfectly.
However, when we try and run Map Cache through the browser, it gives a 500 error below.
HTTP Error 500.0 - Internal Server Error
C:\ms4w\Apache\cgi-bin\mapcache.fcgi.exe - The FastCGI process exited unexpectedly
We've set up the Environment Variable to point to the XML file, as well as set up the web.config (see below). I feel like I'm missing a configuration to get Map Cache working. There's plenty of instructions for Map Server, but I couldn't find anything specifically for Map Cache online. If there's a simple solution it may be worth updating the instruction manual. Any help would be appreciated. I've attached some relevant information below, as well as a screenshot of the environment variables and the website structure.
Map Server web.config (working)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="MapServerFastCgi" path="*" verb="*" type="" modules="FastCgiModule" scriptProcessor="C:\ms4w\Apache\cgi-bin\mapserv.exe" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="" />
</handlers>
<caching enabled="true" enableKernelCache="true" />
</system.webServer>
</configuration>
Map Cache web.config (not working)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="MapServerFastCgi" path="*" verb="*" type="" modules="FastCgiModule" scriptProcessor="C:\ms4w\Apache\cgi-bin\mapcache.fcgi.exe" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="" />
</handlers>
<caching enabled="true" enableKernelCache="true" />
</system.webServer>
</configuration>
Kind regards
Georgios Markou
Analyst / Programmer
[cid:image001.png at 01D504C3.66022C90]
Telephone: 1800 18 18 20 (int. +61 8 8361 2666) | Facsimile: 1800 18 18 30 (int. + 61 2 8006 5205)
Email: georgios at smartsoft.com.au<mailto:georgios at smartsoft.com.au> | Web: www.smartsoft.com.au<http://www.smartsoft.com.au/>
This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Use or disclosure of the information by anyone other than the intended recipient is prohibited and may be unlawful. If you have received this email in error, please advise us by return email or by telephoning free call 1800 18 18 20 (int. +61 8 8361 2666).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190509/79531ca8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10812 bytes
Desc: image001.png
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190509/79531ca8/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Environment Variables.png
Type: image/png
Size: 10750 bytes
Desc: Environment Variables.png
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190509/79531ca8/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Website structure.png
Type: image/png
Size: 17841 bytes
Desc: Website structure.png
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190509/79531ca8/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgi-bin.png
Type: image/png
Size: 43888 bytes
Desc: cgi-bin.png
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20190509/79531ca8/attachment-0007.png>
More information about the MS4W-Users
mailing list