Updated Setting up Dynamic Map with IIS (markdown)

FrozenCow 2011-06-13 12:55:45 -07:00
parent 744b6b6812
commit e524e1d6cb

@ -24,14 +24,23 @@ tilespath: C:\Inetpub\wwwroot\dynmap\tiles
If everything went alright, you should now find some new `.png` files in `C:\Inetpub\wwwroot\dynmap\tiles\`. You can also go to *http://yourwebserver/dynmap/* in your browser. It should display the map, but also display an error not being able to update (player locations and map changes). If everything went alright, you should now find some new `.png` files in `C:\Inetpub\wwwroot\dynmap\tiles\`. You can also go to *http://yourwebserver/dynmap/* in your browser. It should display the map, but also display an error not being able to update (player locations and map changes).
Open up `C:\Inetpub\wwwroot\dynmap\config.js` in Notepad and change the following line: Open up `C:\Inetpub\wwwroot\dynmap\config.js` in Notepad and uncomment the following section below the line 'For proxying webserver through aspx.':
```js ```js
updateUrl: 'up/', // For proxying webserver through aspx.
url: {
configuration: 'up.aspx?path=configuration',
update: 'up.aspx?path=world/{world}/?{timestamp}',
sendmessage: 'up.aspx?path=sendmessage'
},
``` ```
Also make sure to comment the section in the top of `config.js`:
To:
```js ```js
updateUrl: 'up.aspx?path=', // For internal server or proxying webserver.
//url : {
// configuration : 'up/configuration',
// update : 'up/world/{world}/{timestamp}',
// sendmessage : 'up/sendmessage'
//},
``` ```
Now refresh your browser. It should now display online players on *http://mywebserver/dynmap/*, keeping them up-to-date. Now refresh your browser. It should now display online players on *http://mywebserver/dynmap/*, keeping them up-to-date.