# hosting on a IIS server

**URL:** https://community.cesium.com/t/hosting-on-a-iis-server/583
**Category:** CesiumJS
**Created:** [July 1, 2013, 8:52pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583 "2013-07-01T20:52:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![BR1](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@BR1](https://community.cesium.com/u/BR1)
#### Post date: [July 1, 2013, 8:52pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/1 "2013-07-01T20:52:01Z")

</div>

Hello guys. Is ii possible to host Cesium on a IIS server? Using an OVH windows mutual hosted solution, and having no control to install additional package, I wonder if Cesium could be able to run on IIS8 with that environment : [ASP.NET](http://ASP.NET), ASP, PHP, LINQ, AJAX, MVC?  
thanks

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [July 1, 2013, 8:55pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/2 "2013-07-01T20:55:48Z")

</div>

Absolutely, we run Cesium on IIS all of the time. Cesium is completely server-agnostic.

---

<div class="post-metadata">

### Author: ![Ed\_Mackey](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ed_mackey/32/2226_2.png) [@Ed\_Mackey](https://community.cesium.com/u/Ed_Mackey)
#### Post date: [July 1, 2013, 8:57pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/3 "2013-07-01T20:57:33Z")

</div>

Sure, any/all of that will work. The core Cesium code doesn’t have a server-side component, so it’s just flat files as far as the server is concerned. Just make sure there are MIME types registered for things that IIS doesn’t usually serve. Here’s a sample web.config:

```
        <remove fileExtension=".json" />
        <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
</system.webServer>

```

---

<div class="post-metadata">

### Author: ![BR1](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@BR1](https://community.cesium.com/u/BR1)
#### Post date: [July 1, 2013, 9:17pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/4 "2013-07-01T21:17:39Z")

</div>

Many thanks Matt and Ed. I was thinking Node.js could be necessary. Any simple tutorial to achieve this setup on my IIS server?

Again thanks

Bruno

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [July 2, 2013, 7:45pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/5 "2013-07-02T19:45:22Z")

</div>

Using the Cesium Viewer application as a reference. The simplest instructions for getting up and running are:

1. Download Cesium-full-b18.zip

2. Create an IIS virtual directory that maps to Build\Apps\CesiumViewer

3. Browse to that location.

That’s all there is to it. The only problem you’d have with this setup is the lack of a proxy, but you’ll only need to create one if you are planning on using imagery or terrain stored on a non-CORS server.

Matt

---

<div class="post-metadata">

### Author: ![Bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bruno](https://community.cesium.com/u/Bruno)
#### Post date: [July 9, 2013, 9:07am UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/6 "2013-07-09T09:07:19Z")

</div>

Hi Matt,

THanks a lot. This is working well. I am in the learning curve. Not so easy to feel confortable quickly but progressing. I am now looking to czml. How to use it and how to generate it as well. This morning if was wondering if it exists some way to manage layers to display vs the distance from the camera. For example like in STK have markers only, or markers+labels, ...?  
Next big question is what you addressed in your answer about the imagery and terrain server. What do you recommand to be able to do this. I will have to test with specific data covering some part in the Alps

tanks

Bruno

---

<div class="post-metadata">

### Author: ![Andrew\_H](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Andrew\_H](https://community.cesium.com/u/Andrew_H)
#### Post date: [July 7, 2015, 6:58pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/7 "2015-07-07T18:58:17Z")

</div>

Hi All,

Can someone point me to resources I could use to make a proxy that will run in IIS? Getting CORS enabled with GeoServer is proving to be a bit difficult.

Thanks,

A

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [July 14, 2015, 2:46am UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/8 "2015-07-14T02:46:10Z")

</div>

This might help: [https://github.com/jgauffin/CorsProxy](https://github.com/jgauffin/CorsProxy) I haven’t used it, but it should be a good starting point (assuming you can’t use it’s NuGet package out-of-the-box: [https://www.nuget.org/packages/CorsProxy.AspNet/](https://www.nuget.org/packages/CorsProxy.AspNet/))

---

<div class="post-metadata">

### Author: ![Shirui\_Wang](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Shirui\_Wang](https://community.cesium.com/u/Shirui_Wang)
#### Post date: [April 18, 2017, 4:18pm UTC](https://community.cesium.com/t/hosting-on-a-iis-server/583/9 "2017-04-18T16:18:01Z")

</div>

Hi All,

I’m currently using Cesium to load point cloud data in our project. And it worked perfectly when using NodeJS as the server.

However, when I tried to host everything on IIS, the loading of Cesium3DTileset doesn’t work anymore.  
I took the suggests and edited the `web.config` file as following:

```auto
<configuration>
    <system.webServer>
        <staticContent>
	    <remove fileExtension=".json" />
            <mimeMap fileExtension=".json" mimeType="application/json" />
	    <remove fileExtension=".pnts" />
            <mimeMap fileExtension=".pnts" mimeType="application/octet-stream" />
        </staticContent>
    </system.webServer>
</configuration>

```

So there is no error messages to serve `.pnts` or `.json` files.

But the console log showed that `selectedTiles:Array(0)` instead of `selectedTiles:Array(1)`. That means the `.json` file has been loaded but `.pnts` file has not.

I also checked the `Cesium.js` source code which I followed [https://github.com/mattshax/cesium\_pnt\_generator](https://github.com/mattshax/cesium_pnt_generator).

where the `Cesium3DTileset` constructor has been implemented. But it seems like the code is also server-agnostic.

I’m not sure if there are more configurations I need to change in IIS. But this problem does not come from the code-side but server-side.

It has been bothered me many days and if anybody could help, I would appreciate A LOT!

Best,

Shirui
