mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-16 11:51:58 +01:00
Write a small message here explaining this change. (Optional)
Created Setting up without the Internal Web Server(Advanced) (mediawiki)
parent
cbb68a08de
commit
903b1ada57
@ -0,0 +1,75 @@
|
||||
This page assumes
|
||||
|
||||
* You are reasonably experienced with the standalone web server you are using.
|
||||
* You have the standalone web server and CraftBukkit running on the same machine.
|
||||
* You have knowledge of rewriting URLs for your system.
|
||||
* Dynamp is already setup for Craftbukkit if not follow a guide in the [[Wiki|https://github.com/FrozenCow/dynmap/wiki]] then return to this page.
|
||||
<br><br>
|
||||
|
||||
Start
|
||||
<br>
|
||||
* Modify your `minecraft_server/plugins/dynmap/configuration.txt`.
|
||||
** In your file find disable-webserver and jsonfile (there are 2) and set them to true.
|
||||
** jsonfile-interval should be a lower value(atleast 1s or 25-50%) than your updaterate for the web.
|
||||
*** This prevents the possibility of a client trying to update and receiving the same data more than once. Since the client simply reads a file it this is the only solution, since data update is not requested live on the spot.
|
||||
```yaml
|
||||
# Disables Webserver portion of Dynmap (Advanced users only)
|
||||
disable-webserver: true
|
||||
|
||||
# Writes JSON to file in the webpath
|
||||
jsonfile: true
|
||||
|
||||
# How often the json file gets written to(in seconds)
|
||||
jsonfile-interval: 1
|
||||
|
||||
web:
|
||||
# Handles the clientside updates differently only enable if using jsonfile
|
||||
jsonfile: true
|
||||
```
|
||||
<br>
|
||||
* You also need to modify your tilespath and webpath if you haven't already to point to your webserver.
|
||||
|
||||
|
||||
For *nix
|
||||
```yaml
|
||||
# The path where the tile-files are placed.
|
||||
tilespath: /path/to/web/server/dynmap/web/tiles
|
||||
|
||||
# The path where the web-files are located.
|
||||
webpath: /path/to/web/server/dynmap/web
|
||||
```
|
||||
|
||||
Or for windows
|
||||
```yaml
|
||||
# The path where the tile-files are placed.
|
||||
tilespath: c:\\path\\to\\web\\server\\dynmap\\web\\tiles
|
||||
|
||||
# The path where the web-files are located.
|
||||
webpath: c:\\path\\to\\web\\server\\dynmap\\web
|
||||
```
|
||||
* Restart your Minecraft server.
|
||||
* Join your Minecraft server and place a few blocks (randomly) to trigger dynmap to generate tiles for your map.
|
||||
* If everything went alright, you should now find some new `.png` files in your tiles folder you set above.
|
||||
<br>
|
||||
|
||||
Now all your web files for dynmap should be in their default forms. But at this point your maps is not working. We need to link the jsonfiles to the web files so it can find them.
|
||||
<br><br>
|
||||
|
||||
For apache you need to create a .htaccess in your Dynmap folder(your webpath)
|
||||
```apache
|
||||
|
||||
# Rewrite engine options
|
||||
Options FollowSymLinks -Indexes
|
||||
RewriteEngine On
|
||||
|
||||
RewriteRule ^up/configuration$ dynmap_config.json [L]
|
||||
RewriteRule ^up/world/(.+)/(.*)$ dynmap_$1.json [L]
|
||||
```
|
||||
|
||||
For IIS(unconfirmed) have IIS import the following apace rules, it should be able to convert them.
|
||||
```apache
|
||||
RewriteRule ^up/configuration$ dynmap_config.json [L]
|
||||
RewriteRule ^up/world/(.+)/(.*)$ dynmap_$1.json [L]
|
||||
```
|
||||
|
||||
Now refresh your browser. It should now display online players on *http://mywebserver/dynmap/*, keeping them up-to-date.
|
Loading…
Reference in New Issue
Block a user