forked from webbukkit/dynmap
-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up Dynamic Map with lighttpd under Arch Linux
mikeprimm edited this page Aug 31, 2011
·
7 revisions
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/" => "/opt/minecraft_server/plugins/dynmap/web/tiles/" )
url.rewrite = ( "^/dynmap/up/(.*)" => "/up/$1" )
$HTTP["url"] =~ "^/up/" {
proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )
}
url.rewrite = ( "^/dynmap/standalone/(.*)" => "/standalone/$1" )
$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.