Dynmap with lighttpd on Arch Linux - webbukkit/dynmap GitHub Wiki
This page assumes:
- You have lighttpd installed.
- Your www-root directory to be:
/srv/http/
. - You could access your Dynmap-map succesfully through http://localhost:8123/.
Start:
- To start, create the directory
/srv/http/dynmap/
. - Copy the contents of the
web
directory found in the zip to/srv/http/dynmap/
.
This example shows how to put dynmap on your lighttpd webserver in http://mywebserver/dynmap/.
In /etc/lighttpd/lighttpd.conf
, be sure you have the correct modules enabled:
server.modules = ( "mod_access",
"mod_rewrite",
"mod_proxy",
"mod_fastcgi"
)
Now we must make the tiles available from the webserver and also 'redirect'/proxy /dynmap/up/
to dynmap's internal webserver. To do this, put the following at the end of /etc/lighttpd/lighttpd.conf
:
alias.url += ( "/dynmap/tiles/" => "/home/minecraft/minecraft_server/plugins/dynmap/web/tiles/" )
url.rewrite-once += (
"^/dynmap/up/(.*)" => "/up/$1",
"^/dynmap/standalone/(.*)" => "/standalone/$1"
)
$HTTP["url"] =~ "^/up/" {
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )
}
$HTTP["url"] =~ "^/standalone/" {
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )
}
Restart lighttpd (sudo /etc/rc.d/lighttpd restart
)
It should now display online players on http://mywebserver/dynmap/, keeping them up-to-date.